Team experience graph

First version. Also improved performance of getting ability-upgrades from the database.