Rename history to stats

Make room for other type of data, like top 5 charts etc.
Move past workouts list under /rest/stats
Tabify the stats view
Case insensitive sort for exercises
Use a base class for Model objects