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 
Please lowercase all of the field names. They don't need to be exported.