Moved important vars to env to follow 12factor advice