Initial import of refactored core server component.