moves env to config
adds chrome option
sets config.server.origin
cleanup