Add Mustache, some require plugins, refactor

This adds Mustache for templating and plugins for loading/compiling Mustache
templates and loading/parsing JSON.