Specify scope for location bindings

because Tyler is a naughty, naughty boy
Let django templates handle messages

Javascript is hard... How can I make this render properly when passed as
a template variable?
var myelem = "<h3>Hello, "Nick", what's up?</h3>";
Merge pull request #5073 from dimagi/archive-button-feedback

Misc messages bugfixes