Changing messages templates

Changing message templates to accommodate unicode titles in mysql
queries. We can now define any string as a "AS" statement and use it on
the template using the #_(name) helper. #131, #10