Refactor auth to make it more readable and understandable.
Refactor auth to make it more readable and understandable.
Merge pull request #13 from vogdb/issue-13

Authorisation
Merge branch 'issue-13' into issue-39
Create separate test config for ssl connection.