Add indexes to reviews table.
Remove trailing whitespace.
Refactor reviews and review averages.
Merge branch 'ch-8-refactor'