Modularize the codebase using Browserify

This looks at solving issue #27 using [Browserify](http://browserify.org/).