Fix calculating host resources

- Stop changing of host resources.
- Add the pending tasks as parameter in the scheduling algorithm, in order to respect the resources reserved for the scheduled pending tasks.

@peterbourgon @jmyounker @stuartnelson3 
The pending tasks are created and accessed in xf package and so the fields need to be exported to be accessed from there.