Upgrading Integration tests to use Xcode 5 testing framework. Adding WebSockets mock objects and mock-mechanism. Adding Unit Tests.