Issue 2937 transition flow

DO NOT MERGE

This depends on PR #2936

Primary-secondary transitions get their own wsapi calls and email template. Fixes issue #2937