browserfy compat modules
wip set up gulp and karma
karma tests updated for browserify
revised structure, new libs and tests