Don't break the back button when hard loading

- Add a test case for going back from error pages which don't have pjax,
  as described in issue #422

- When hard loading a url, set the back action to the page's url from
  before the request was made

Fixes #422
Merge branch 'back-from-error'

Closes #437