Post responses and redirects to handle embedding and ajax