Added support for changing the auth mechanism.
Merge pull request #208 from bakkerthehacker/master

Added support for changing the auth mechanism.