Added major stats and output functionality

Added functions to get user statistics, calculate average tier (and
other tier related info), prepare a dictionary with information to
output to CSV, and one that takes a file with names to look up and
creates a CSV file with the statistics for them.