Address Book module: Fix selection of card
Convert allFoldersMetadata to a tree structure

When parsing the mailboxes list, we now generated a hierarchical
structure of the metadata. Each mailbox (a dictionary) can now have a
'children' key that is an array of mailboxes.