Added queue for adding entities to cWorld.

This alone doesn't work properly yet, further changes to cPlayer are needed.
Fixed deadlock when moving players to other worlds.

Fixes #1039, fixes #851