Refactor email/sms/cite into actions within extendable action framework

Rebased #991 on master.