Added caching to federation. Federation now does lookup at the actual domains.