<i>* Is there a way to do something like this without having to modify any files in 'kernel'? As maintaining something like this begins to get hard, even in SVN when you have to modify core-code.</i>
Maybe you can run your kernel/content/action.php specific lines into a custom module dedicated for the static export.
Like this, the php part of your improvment can be put on a SVN.
Congratulations! I (and surely others) look forward to checking out a copy of ez-deploy from svn.projects.ez.no :)
Another suggestion. Consider publishing howto documentation like the contents of this forum thread on http://eZpedia.org/wiki/en as a new article. Simply register an account and create a new wiki page in the 'ez' folder.