Move most code in core/scripts/server/ into notc/common/.