Handle resources loaded from file system

XmlHttpRequest returns status 0 when loading with the file:// protocol.
This happens within Cordova, node-webkit, etc and prevented dynamically
loading local resources