hub: Add handlers for statistics.