few fixes to get jake to almost work

Rolf, its sasha (tisc)

Those were some of the issues I ran in trying to get jake to work with vanilla installs of cake 2.2.4 Joomla 3.0.2 with  php  5.4.4  and apache 2.2.22  (tried php 5.3.14 with same results)

after fixing those, I still had an error raised in onAfterDispatch() method of plugins/system/highlight/highlight.php  (supressed it by just returning from it) and after that it sorta worked. the ouput gets truncated  and joomla template does not render fully. here are some screenshots - http://sta.sh/211izgppxnas

aside from that, awesome stuff!