Support feature checks in templates

The template needs the user object (expected to be the session user), and usage is:

```html
{{#feature user "alpha"}}You are alpha user{{/feature}}
```
Merge pull request #1023 from remy/feature/handlebars

Support feature checks in templates