Implemented registering clients and populating data queue.
Added a test for the server.