Clearing the right listeners in doStop().
Merged branch '2.7.x' into 'master'.
Code changes to make tests pass: core code fixes and test code fixes.
WebSocket modules now clean, apart a couple of ignored tests.
Code changes to make the Oort module tests pass cleanly.