introducing services for socket.io and REST api (ngrsource)