Fixed sending of headers when ajaxLogin is set
Added test case for CakeResponse::send() and ajaxLogin
Mocking _sendHeader instead of send()
Merge pull request #4060 from davidsteinsland/fix_ajax_login_header

Fixed sending of headers when ajaxLogin is set