repo-schemas: refactor repository schemas and use it in API update/create functions....
repo-schemas: refactor repository schemas and use it in API update/create functions.
- now it uses consistent way of serializing/validating data
- parent groups are consistenty handled by name parameter
- fixes
#4133
- fixes other problems with bad data
- changes API slightly
- validation chain ordering, first permissions, then uniqness.
Helps prevent resource disvovery