Refactor commands handling into Commands and SubCommands classes.
Add the SubCommands class.
Tidying up the stats pages.