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 you meant to use getIdentities() here because you just assigned the empty object to gIdentities :)