Hierarchical metadata format and API capable of storing and accessing any format