Add getIsPjax method to Request, and add X-PJAX-URL header when redirect from pjax request

When redirecting from a pjax request, we should send a x-pjax-url header, with the redirected url. Therefore, pjax will push this url in state, instead of the original url.