Core/NetworkIO: Restore networking related scripting hooks

Closes #12607