Changed the environment files to flat arrays.

This is to help with proper configuration and env sensitive data
generation. I also add the encryption key area to the environment file.