Added notifications, invite fixes, cleanup

- Invites now send a notification to the frontend
- Fix issues with displaying invites that where of any state
- Allow querying user page by id