Fixes #1

Adds basic auth interpretation to middleware.