Solves websocket testing

* Uses ws library to create ws client
* Uses ws_response array to log message received by ws client
* Uses sinon.spy to assert against console output
* Carries out operations first then tests results afterwards
Merge branch 'misanthropy' of https://github.com/entrepreneurj/misanthropy into misanthropy