Default $ajax contentType to application/json

This is a temporary measure. $ajax needs rethinking in terms of API, to
expose more options etc.