Fixed Github bug #18 - archivejson.cgi returns wrong host for state change query