Moved room listing to the end of the rooms functions for consistency.
Added invites endpoints.