Added auth hook on connect
Merge pull request #11 from muxspace/master

Properly support password authentication