Added a script for fixing orphaned user accounts.

References #522.