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