Refactoring of auth stuff.
MTProtoMessenger: fixed bug with authKeyId.