Convert Subjects to use JSON Schema

permit any kind of data in metadata

Closes #368
Merge pull request #405 from edpaget/schema-for-subject

Convert Subjects to use JSON Schema