Added AJAX/JSON handling for comment/rating login redirects, and comment form errors.