A failing test for StartApplication with environment
Generate the GearEnvironment in StartApplication.run
Merge pull request #591 from ClusterHQ/application-environment-586-2

Pass the supplied Application environment during StartApplication state changes.

Fixes #586.