First batch of event system tests.
Fix accidentally trying to return a reference to a temporary local.
More tests for the event system.
Use unsigned ints as timestamps in events.