Add Worker.cpp

Split worker thread task function from Server.cpp, and refines works to be done by worker