Reload activities/events on the dashboard page via ajax

Related to #2155, but little improved.