Source code and test refactoring, now only one $provider `socketProvider`->`socket`, which allows support of multi socket instances and access to them from the app at the same time