TRUNK-4031 Adding PatientIdentifierTypeLockedException

 and refactoring controller into smaller methods.

When patient identifier type is locked, options to save, retire, unretire, and purge type are removed from ui along with exception being thrown and logged.