Restore principal

Provides a test and fixes issues for conflicting account/group names/ids which can occur during a database restore or manual editing of account and group XML documents in the system security collection.