Issue 60: authentication for users of the admin interface

WIP

See #60 
Why do you need this `with` block?