Make internal static maps into public enums

this will help clean the code up a bit, making it more idiomatic. Also,
it allows me to expose the metadata field information to outside users.
I might also be able to generate the schema by reflection, eliminating
the separate JSON schema file I currently maintain in parallel.