Bring $post into global scope

Many plugins rely on access to the global `$post` object when they parse the content during the `the_content` filter. This PR puts the updated post object into global scope during AJAX updates.