Converting badge quality property from color to an integer representation for later sorting purposes
Summary: Ref T9007
Test Plan: Create badges, update quality, search by quality without change of functionality.
Reviewers: epriestley, #blessed_reviewers
Reviewed By: epriestley, #blessed_reviewers
Subscribers: Korvin
Maniphest Tasks: T9007
Differential Revision: https://secure.phabricator.com/D15551