Support authentication
Merge pull request #27 from wmertens/master

Adds initial support for authentication