Make sure events are reported at most once per second

This change aggregates events sending, and reports them at most once per second.

Also I've added events for viewing a query/widget/visualization, when looking at a dashboard.