Issue 60: authentication for users of the admin interface

WIP

See #60 
Do you still need events_type?