Move metadata schema to top level

This is a general definition which applies across all formats, so it
belongs in the outermost directory.