Refactored userlist comparison code.

Also improved editor userlist output, and some const correctness
improvements.