Setup some of the ajax architecture