This adds a command button which, once clicked, assigns an idle villager to the entity. A foundation or repairable entity: "repair", a resource: gather.
Pressing the "assignall"-hotkey (not yet implemented, I saw) sends all idle villagers to the task at hand.
Depends on D2343 for resources.