HADOOP-8567. Port conf servlet to dump running configuration to branch 1.x. Contributed by Jing Zhao.