Add support for .env, write some docs about configuration.