browserify support

Added testCollections to .gitignore
Removed dependencies from package.json not used in src/**
Better NODEJS ENV detection using  global window instead of global exports