breaking up code into commonjs modules. Will use library cjsc to concatenate files for browser.