Make the current account an index in ActionBar

This fixes a few issues:
1. The currentAccount object and the accounts array are now in sync.
2. When we get an updated list of accounts, we update our current account.
3. Account checking is done based on URI rather than full object comparisons.

Change-Id: Ifaae01efda0e6dfa57f009ab512aab8c3d6fa803
2 files changed