Code simplification.
Allow array to be passed to App::environment().
Add tests for App::environment().