Update ajax request check to use wantsJson vs isXmlHttpRequest

Helps with #142 as Angular doesn't set the xmlhttp header on it's requests, but *does* set it's Accept header to application/json (which jquery uses as well)

You still need to set up the $http intercept handler in angular though :)