Further work on new request model, converted workgroup, added __getstate__ and __setstate__ to Task to simplify task sending code