HDFS-4685-WIP: refactor some code into AclStorage.