HUB-47 : Added hAuth actor tests and refactor auth code
Minor bug fixes in authentication
Merge pull request #10 from bnadim/master

added authentication unit tests