Process authentication in a middleware.
Implement HTTP Basic Auth.

Close: #27.