Workflow automation improvements

More triggers (invoice paid or overdue, deal stage change, ticket status), conditions and branching, and run history for every workflow.