moved the rank generation into the library, and out of the gui code
(management only - rest to follow on next commit). Gotta love it when a
plan comes together! :-D