fix bug introduced when caching was added.
to use client side hooks, need access to globalHookHandler.
Merge branch 'develop' of git://github.com/yahoo/mojito into sweetandsour2
added some comments.
fixed lint issue
Merge pull request #973 from bthaeler/sweetandsour2

Fix for client side hooks, bug fix in template hooks.