Add support for environment variables. Closes #32