Refactored server and client code into non-main modules and moved them back to packages (client and server). Kept main-modules in root. Changed task distribution to work in batch-mode (as parameter in server module)