Prune more unused templates
Support early upstart versions

If upstart does not natively haev the ability to set the user and group
a service will run as, use sudo instead.