Added first test, improved some functions

New:
    Tests for the event class.
    removeAllHandlers for removing multiple event handlers
Changed:
    registerHandler can now realy handle an array