Core/Transports: Rewritten transport handling