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
Merge pull request #1482 from machtfit/tables-plural-caption

Tables plural caption