models14: Extend consistency checking to model relationships

 * Move ModelRel to first class in mid.ecore
 * Add model rel + endpoint consistency
 * Refactor constraint checking functions