Added a function to allow for adding / updating a template.
Merge pull request #1 from freshteapot/createtemplate

Added a function to allow for adding / updating a template.