AjaxSessionPing breaks SSL pages

Change directActionURLForActionNamed to use
context().request().isSecure()
Revert "AjaxSessionPing breaks SSL pages"

This reverts commit 0d688788792cfe055662aec12991d0089449591a.