Add resourcemanager

* Factor hadoop class into library

* Use it for nodemanager class