Move authentication code to separate functions
Isolate knowledge about TLS
Close server socket on shutdown
Move authorization code into separate module
Add test
Move config file handling to a separate file
Move authentication code into a separate module
Move stuff related to authentication from Cookies to Authenticate
Get rid off HTTP dependency
Merge pull request #15 from zalora/add-test

Add test