Improve Connection class

Implement getting invites list support.