Reload GUI when restarting from web GUI (fixes #188).
Fixed various test cases. Also removed slow/unreliable tests.
Merge commit '65a45d740855b91c726db389b185e590ee02c7ff' into notifications
Started to create the getEvents function