HDFS-4145. Merge hdfs cmd line scripts from branch-1-win. Contributed by David Lao, Bikas Saha, Lauren Yang, Chuan Liu, Thejas M Nair and Ivan Mitic.