Inv email

Fixes bug: Wrong community, if host has subdomain. For example, if domain is marketplace.mydomain.com, we look at domain `marketplace`. If it is found, use it.

InvitationCreatedJob stored community_id instead of host. We can do the change, since the InvitationCreatedJob is run immediately.

Remove failed InvitationCreatedJob from `delayed_jobs`