corrected loggregator endpoint in template
adding support for scripted secret and username creation