Implementation of a more generic authenticator to address issue #49 and #96
Fixes and tests for #97
Merge pull request #97 from akkie/master

Implementation of a more generic authenticator