Add test cases for proxy/hdfs.

This commit also makes HDFS function properly for an empty host:port. This
indicates the user wants to use the "site default", supported by the hdfs.h
API. [This also conveniently allows us to write the test case for HDFS without
specifying a specific host:port.]