Store environment variables in a file, and allow init scripts to change environment variables.

Closes GH-23.