Support generic Hadoop Compatible Filesystem (short version)

This is a short version of #388.
fs.hdfs.impl.disable.cache is still set below. Rest (gluster related) are set in core-site.xml.