Make statistics use numeric ID instead of the JID
Remove useless bottle-sqlite requirement
Make graphs not look totally terrible with tons of data
Cleanup some stuff
More code cleanup