Precompile handlebars templates and update deploy tasks to handle precompile

This PR also has some:
- fixes for the DEBUG variable in templates
- adding some user details for raven events
- restructures settings in django to use a common server.py settings file