private void Initialize()
        {
            //we don't have autofac so let's build the tree
            var connectionManager = new ConnectionManager(_transport, new RequestsHandler());
            var loginServiceProxy = new SquawkLoginServiceProxy(connectionManager);
            AccountManager = new AccountManager(_storage, connectionManager,
                new RegistrationServiceProxy(connectionManager),
                new AuthenticationServiceProxy(connectionManager),
                loginServiceProxy);
            AccountManager.LoggedOut += LoggedOut;

            var chatServiceProxy = new SquawkChatServiceProxy(connectionManager);
            ChatManager = new ChatManager(connectionManager, chatServiceProxy, AccountManager);
            ConnectionManager = connectionManager;
        }
        public ChatManager(
            ConnectionManager connectionManager,
			IChatServiceProxy chatServiceProxy,
            AccountManager accountManager)
            : base(connectionManager)
        {
            _chatServiceProxy = chatServiceProxy;
            _accountManager = accountManager;
			_accountManager.LoggedIn += OnLoggedIn;

            //Messages = new ObservableCollection<Event>();
            OnlineUsers = new ObservableCollection<Profile>();
			UserDirectory = new Dictionary<int, Profile> ();
			Rooms = new RoomCollection ();
			_updateBuilder = new ChatUpdateBuilder ();
        }