made a route for searching for users
made search for users work a bit better
made it possible to search for groups
added better support for invitation handling