refs #17: Improve init script and default templates

Save the current environment name in params['environment']