Make sure that mappings controls are only shown when the user has the
required authorization to perform the mapping. Further, only show items
that can be mapped in the modal dialog for mapping. This required quite
a bit of refactoring.