Added “redirect” option to Ajax methods.