Keep account state in hash table, and call update functions

Allow external code to see the state of each account: connected,
disconnected or deactivated.