add commonjs support
update package.json
move package.json to cortex.json
Merge pull request #879 from supersheep/master

use cortex to manage dependencies