Added support for e-mail notifications about state changes.
For each state it is configurable to send e-mail to creator
of the record and/or to the supervisor(s) of the database
(users having 'mod/data:superviseworkflow' capability).