Reworked Ticket Stats

- Code reworked and fixed some issues like stats feature in component
only shown if 'show closed tickets' is enabled.
- Performance in module improved
- module and component got different css classes.