Bs mapping validations

Add validations when creating a mapping or saving a document to ensure that mappings and fields on a document stay in sync.