Gearpump resource scheduler

extract scheduler implementation and abstract resource respresentation
Please forward a WorkerTermination message to Scheduler.