refactor authentication to separate identification (principal) from signature (credentials)
Merge pull request #7 from karlthepagan/integration-server

refactor to support server integration