Gearpump resource scheduler

extract scheduler implementation and abstract resource respresentation
The master need to send a explicit message to scheduler than worker is removed.