feat(brunch): templates are put into `app.js` natively with Brunch
feat(loader): automatically determine environment based on where it is
currently hosted
refactor: consolidate code under different modes