Move hooks and helpers into env

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