pep8 the schema logic.
Fix relation permission queries - failed here.
pep8 attribute and pipeline model.
Support arbitrary metadata on schemata via a `meta` dict.