Adding mock-socket library to get tests to pass in phantomJS

Tests have not been working locally as PhantomJS does not have a WebSocket object nor do the test have a "websocket" backend running. Mock socket solves both of these issues.