Retry the application of a template if it fails. This can happen if the service has been restarted just before the template is applied.
Merge pull request #32 from brucem/hotfix/template

Retry the application of a template if it fails.