Fix #685

Add back in check for file protocol when accepting status code '0' as success, but also check the protocol of the page for relative URLs. This allows Cordova apps to request local content with a relative URL.