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 sends all idle villagers to the task at hand.
Depends on D2343 for resources.