Add support for browserify

[closes #250]

This adds a customized browserify transform to ensure that everything keeps working when browserify is enabled.