Event creation / editing backend finished.

Still need to un-uglify it, though.