Start using json-schema for validation

The schema is based on the schema under review genome/ptero-apis#17