Templates from the automation gallery

New automations can now be initialized from templates in the automation gallery.