Finished new AJAX revisions

But not tested yet!