transition configuration to env variables

please review @danrschlosser 
Should this and `RELATIVE_UPLOAD_FOLDER` be in environs as well?