Another number of changes

Summary:

* Add charset=utf-8 in Content-Type header
* Unify the way we handle messages
* Unify the way we handle text formats (so that we don't get different text formats in different views)
* JSON would have the same text format as HTML. This means, ACTION messages in polling are fixed.

As a side-effect, now timestamps in json would always be unix epoch in floats.