Authentication support
Merge pull request #146 from noplay/authenticate

Authentication support