Refactor config loading and mgmt into new command

Also refactor open module out and shelljs