[#50405399] Replace data-dialog and data-alert with click handlers.

This removes all occurrences of data-dialog and data-alert from the
ActivityView template and adds click handlers for each one of the
links.
[#50405399] The activity view list refetches the collection of activities after a note is deleted.