Merge pull request #6 from cl-aaron/master

handling unhandled errors
Refactored to use ratelimiter module
Various fixes for jshint