#642 Updated TemplateTypeDTO with the same names we use in javascript to ease our transition to using restangular (i.e. no more transformers needed if the server behaves). Updated states to use the addMessage function on the root scope.