Continue switching tests to Mocha

This pull request continues the work of #237 for #197.

Fixed timeout failures and rebased to current master.
All socket tests were split up again because the combined version has become bloated. It can be combined again if better grouping for the mocha spec reporter is desired.