move StateObject back into libmproxy