Beauty changes:

- removed unused functions
- some comments removed
- username textbox on "newevent" is now read-only