Add environment variables YAML config for Applications

fixes #569 
add optional "environment" key to application YAML config
a dictionary of environment variable mappings to be made
available to the application's container
I think the code would be clearer if you added a test for `isinstance(environment, dict)`  upfront and raise this error right at the start of the function.