Add getIdentities function

I implemented your suggestions from https://github.com/protz/GMail-Conversation-View/pull/866.

Should getDefaultIdentity() rather return only the nsIMsgIdentity-object instead of the struct? isDefault would always be true!
I think this still returns at most one default identity: we can't have an identity that is used for multiple accounts.