WIP migrate to browserify
all browserified and chit, mostly everything refactored and working again