Implemented the state system for event creation/edit. State is set client-side with js,
and checked server-side before database access.
Admins have a button on the event edit page, where they may approve events.
Moved the js for event-edit into a script file instead of having it directly in the view.