Work towards moving ScriptContainer to the core

No more hard player/NPC links!