Refactored constructors for 'Unit', 'Player' and 'NPC' classes

Also rejigged the Lua bits a little