Issue #198: Code cleanup. Moving timeout mechanism to SPWebSocket adapter class