Add ability to create templates
Merge branch 'master' of https://github.com/freenas/freenas