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
Merge pull request #127 from DataSplice/load-local-resources

Handle resources loaded from file system