Fix for user edit UI.  Restore profiles. https://trello.com/c/t9fhNJNH/5-admin-user-profiles-are-not-restored-properly
Fixed createMetadata (categories were being copied incorrectly)
Fixed bug creating child metadata.