Use parameters from /config for mail and invitations

This allows to configure mail contents, enable or disable invitations,
and restrict domains invites may be send to, via API.

Change-Id: I26d550955b83986e8e5dd13ec3f1f1a43e92dd12