Use separate ajax url for ajax modal

Adds a separate ajax_url parameter for events, used for ajax modal popups.

This is so that the href url can be set differently, so if the user opens the link in a new tab instead of in the popup, a different url containing more than a snippet can be provided.