Move Entity's id generation to World so it can be a per-World counter.