#642 Fixed error in template type list page which was not changing available buttons based on whether a tempalte exists or not. Added the start of the template domain object and created the template service. Wired up the resolve to the template editor to pull the template from the server