[bug 1039523] Infrastructure for instant search

This does several things:
- Adds nunjucks and grunt to NPM dependencies
- Adds a `Gruntfile` to create grunt tasks to make development easier
- Adds a new manager command to precompile nunjucks templates
- Updates travis and deploy scripts to precompile nunjucks templates
- Updates the search view to return more consistent data in JSON format

r?
so i added this because when i tried npm install after adding nunjucks it said i needed administrator privileges and i was forced to use sudo