Adding restful methods to get user-s invitations by type and user-s events by type