Kazoo 1539

This is all the work around being able to support federation, but because the changes are stable I want to check it in (please).