set correct content type on xml requests

introduced functions for expecting a specific content type (implemented
only for json and xml now)
move Ajax.js to prototypes dir

Ajax.js moved to prototypes directory so it will be updated every once
in a while, rather than be cached for almost ever
Merge pull request #1518 from aodn/content_type_xml

set correct content type on xml requests