refactored browserify support
removed test support (for now)
tweaked tests; fixed minor mistakes;
fixed missing preference