Added functionality for sockets and routiImplemented sockets and routing actions for requests.
merging