change the logic of if hosted or local

moved settings to be local first, heroku second, look for evar ONHEROKU=true