settings: enable auth and session middlewares in DEBUG mode

Needed to be able to use the admin interface.

Fix #61