Fixed default federation handling; removed many old instances of the session data.