OAK-411: Validator for node type management

Merge RegistrationEditor functionality into TypeEditor to ensure that type validation is always done against properly updated type definitions.
Implement consistency checks for node type removals and modifications.
Fix some affected node type definitions and test expectations.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1558226 13f79535-47bb-0310-9956-ffa450edef68