Creating a layer around the ajax calls, preparing to be able to dynamically switch the backend server.