[feature/revisions] Fix AJAX issues

Everything done in this commit is simply undoing changes that I inadvertently
undid in 502ef9d

PHPBB3-10755