Split out ajax handlers and www docs