Added updateRank script.

Moved getRank functionality to common module.