Add CSRFToken to all AJAX requests and Handle AJAX login.