This moves some resource committing logic from UnitAI to ResourceGatherer.
This would allow easier modification by modders, e.g. share resources with allies when dropping at an allied storehouse, since that change only has to be done in one place instead of scattered in the UnitAI-beast.
This also enables a check to only send a resource carrying changed message when it actually changes.