Refactoring to work with web socket protocol library
Make code PSR-2 compliant
Refactoring interfaces
Inject request instance