Made changes to Core.Ajax to allow headers to be attached to the request