Event registration feature, enabling rule for email sending

@TODO group events by type, I'm getting an error during form building, probably memory limit is exceeded. Going to investigate it later.