Added support for defining a gallery template.
Merge branch 'master' into dev
Added support for defining templates, selecting them form a dropdown in the ui; modified Filery.template model field.