Make RankSelector a TemplatedWidget

Another prerequisite for bug 62527. The RankSelector is a widget based on a
template, so it should be a TemplatedWidget. Also, this makes the template much
cleaner.

Change-Id: I1c0acaf043563b967bfba276e71367627ae02df8
Merge "Make RankSelector a TemplatedWidget"