Delay calling pushState() until the xhr succeeds

File merged from https://github.com/defunkt/jquery-pjax/pull/334