HDFS-7011. Implement basic utilities for libhdfs3 (cmccabe)