Issue 60: authentication for users of the admin interface

WIP

See #60 
Why do you need this `with` block? I'm guessing you were that's when you were using the same template for both..