Bugfix: email inviter was broken.
Numerous small bug fixes.