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!
```
if (!identities.exists(function (x) x.isDefault))
  ...
```