Fix OS X 10.10 crash, implement NSURLProtocol required methods (fixes #177)