Move hooks and helpers into env

Templates now have the signature `template(context, env)` where

```javascript
env = {
  hooks: defaultHooks(),
  helpers: defaultHelpers(),
  // other inheritable properties
  data: {}
};
```