Put path related functions into common/path_util.h

+ PathUtil::path_to_hash()
+ PathUtil::index_path(root, name)
+ PathUtil::partition_path(root, name, hash)