Major overhaul to engine.lua; systems and entity declaration changed for the better.