This diff moves the logic for gathering from UnitAI to ResourceGatherer. It would make it easier to allow modders to let e.g. structures gather resources.
Downsides:
- We set the rotation in cmpResourceGatherer, where it doesn't belong, that can be removed by allowing entities to keep facing towards their target.
(See also #4293.)