Added first bits for federation requests. Moving stuff around.