Move queryset_{description,icon} to Table class

Part of #1482
Derive tables from correct base class to enable customizations
Introduce a customizable caption with the number of rows in it

Closes #1482
Show number of categories in table caption