added browserify support
Merge pull request #38 from fb55/patch-1

Added browserify support
replaced log4js with debug
added `debug` as a dependency
Merge pull request #39 from fb55/patch-1

Replaced log4js with debug
handle request errors