Added admin viewEvents page.

Updated a bunch of code to make sure Events work as intended:

* Fixes ERROR_ACTIONs with '0' for the Referenced Object
* SESSION_LOGIN & SESSION_LOGOUT are EventType.severity = 'notice' to separate them from other 'info' events
* Fixes index.php always destroying any logged in sessions