Added SignalR server-client methods + refactoring