Unit setting and test mode setting Backbone tweaks

Moved the top-level markup out of the Django template and into a Handlebars template. That way, we can instantiate and inject the view anywhere, and get a fully functional app, without having to depend on particular DOM elements already existing.