Better invoice state management and state-specific emails.