Convert Subjects to use JSON Schema

permit any kind of data in metadata

Closes #368