Change MesosResourcesObject to be resource agnostic.

Replace hardcoded resources with generic code.