More Lua updates

The important bit here is the Team.CreateFromTemplate function. This makes working with factories much easier.

The Actor.RepairBuilding function is also a nice addition, makes the AI feel more alive.