#642 Updated UI to work with new template ID sent back from server in the template type objects
#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.
#642 - Working on implementing the Restangular framework for the Templates editor.
Merge branch 't642' into t660