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

To use hooks on the client side, the globalHookHandler has to be available for addons. Send pass it around using life cycle events in mojito client.

Fixed bug introduced by Caridy in hb.server.js. Hooks start call has to be called before cache code.