Handle ajax errors and fix various layout bugs in diff loading

When clicking the rc item of a page that has been deleted, the
interface would seemingly ignore your click because the server
reponds with 404 and thus triggers the fail() handler.

The diff frame now shows the 404 rendering (e.g. deletion log or
whatever) as the native interface would.