Add stats page, refactor roll.rb

Fixes #2.