title: login through XHR
body: <p>i want to modify authentication behaviour so that the whole process can be done on the client side through xhr. so for example when i sumbit the login form login_handler would return a some json data on success and error instead of loading up new html pages or having a redirect of any sort. what should i look into to do this?</p>