Add X-Requested-With header

If using XHR then add the X-Request-With header to allow server side applications to detect how the request was made.