Refactor main index file.

 On branch master
	modified:   index.js
	modified:   lib/command_factory.js
	new file:   lib/enginemill_environment.js
	new file:   lib/enginemill_process.js
	modified:   lib/index.js