Added functionality to the UI and Agent that will help to intergrate Crank into D-Crank

this seems a bit too verbose
'''
                int deletedCount = 0;

                foreach (KeyValuePair<int, AgentWorker> workerEntry in _workers)
                {
                    if (deletedCount++ == numberOfWorkers)
                    {
                        break;
                    }

                    workerEntry.Value.Stop();
                    _workers.Remove(workerEntry.Key);
                }
'''