Add Browserify / CommonJS support (dev branch rebased)

Rebased the excellent work by @wookiehangover from https://github.com/adobe-webplatform/Snap.svg/pull/170