Renames local_resources to aggregated_resources.

Also, renames:

work_queue_get_resources to work_queue_aggregate_resources,
work_queue_resources_measure to work_queue_resources_measure_locally.

The motivation is to make the code more readable when dealing with
resources from workers and foremen.