XD-578 Can't access HDFS using the webhdfs protocol

Also address XD-901 regarding different dependencies for webhdfs
in different Hadoop distributions.