uTemplate escaping for application.js

Use uTemplates to escape values before use
Use uTemplates where it makes sense

- escape some UI stuff, not strictly necessary but DRYer
- clean up some debug statements