Adds script to setup environment vars, moves settings into cfg
set debug to true in dev