Display and buy rewards.

Adds a rewards section. Sorry that the commit looks so ugly, I tried to clean it up but diffs don't detect blocks of code very well.