Added support for authentication
 - Fix EventEmitter inheritance
 - Logging is now optional: client.debug = true;# with '#' will be ignored, and an empty message aborts the commit.
 - "ready_callback" now gets 2 params: err and clientInstance