Send version request header

In order to avoid repeating an action via POST, I'd like to be able to check the `version` already registered for PJAX before processing anything, in order to end the request early, sending the new version via a response header.

This PR fixes the issue, but does result in a bit of duplication (`currentVersion` code is copied from `options.success()`).