transition configuration to env variables

please review @danrschlosser 
should we keep it in the same config or move keep it in a separate object? It might be easier in the future when the split needs to happen if we do a separate object