Support generic Hadoop Compatible Filesystem

This is a shortened version of PR #358, with focus on filesystem only.
Hadoop will load core-site.xml if its in the classpath.  Can you explain the use-case where this fails and why this code is needed?