Fix #2076: Cannot use more than one activity integration at once

Also fixes missing onAfterEdit event and wrong order in onThankyou parameters.