Add actions for badges.
This change allows badges to be passed action objects which can provide more context for the badge when performing its action. Specifically, we provide a virtual method that the new qtBadgeActionToggle implements for visiting all selected phrases, rather than just the primary phrase a user has clicked on.