Refactor some shared code.
Crude user stats processing module.

Statistics collected using https://github.com/praw-dev/prawtools
plus my Unicode patch