Fix JENKINS-18203

Implement support for managed files as templates.
More managed files stuff
Merge branch 'managed_files'
Fix JENKINS-20170

Added the correct path for the Triggers entry