Fix Json Response in AjaxAuthenticationSuccessHandler
Change code style
Fix json response in AjaxAuthenticationFailureHandler
Add comments in examples & fix PHP doc.