Gearpump resource scheduler

extract scheduler implementation and abstract resource respresentation
This error message is not good.
Maybe: ResourceUpdate failed! The worker has not been registered into master.