Separate local / global resources

Mostly for readability. Now it is more clear which resources matter to a worker and which ones to a foreman.