NSURLProtocol: changed code flow to avoid seg.faults when delegate releases protocol while being called by it
URL loading system: fixes
fixed bugs spotted by address-sanitizer