Popup transition direction reverse

Addresses issue #4743 - Popup transition direction reverse by adding support for
data-direction="reverse" on popup widget links.