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

Pluggable auth
[error handling] Adding some helpful debugging statements that make the user aware of when their handlers are being removed due to an uncaught exception