Made it possible to define severity levels

Event type in the database has been changed to an int to allow filtering
on severity. Added support to the eventlog page for filtering on this.