Make review settings more flexible

Replace the hard coded thresholds and weights used in SQL queries with
a settings collection. This paves the way for future changes to bring
these settings under the control of application administrators instead
of software developers.

Change-Id: I75ab3396e0c9ec718e25f209cd8396652b9dd48c