Reload GUI when restarting from web GUI (fixes #188).
Fixed various test cases. Also removed slow/unreliable tests.