Making authentication algorithms pluggable with tests.
Merge pull request #1 from dimalev/pluggable-auth

Pluggable auth