Add test for empty auth headers
Fix issue with basicauth's parseAuthHeader
Send http 401 errors on failed auth header parsing
Add authentication middleware example

Fixes #2