first pass at core modularization; unit test

- split core.js into CommonJS modules
- browserify core on request
- add a mocha unit test for Graph as a basis for more unit tests - `$ npm test`