HDFS-7440. Consolidate snapshot related operations in a single class. Contributed by Haohui Mai.