adding link to browserify-shim to make tests work

- also other minor cleanups
fixing various bugs and have first bundle test passing