Initial workflow support for database module, ported from Moodle 2.2
New capability 'data:viewallentires' that lets the user view database entries created by other users.
  By default this right is set (like 'data:viewentry') for:
  'frontpage', 'guest', 'student', 'teacher', 'editingteacher', 'manager'
Option for including workflow states when exporting data.
Extended search (filtering) by workflow state.
  Support for generating/resetting templates: list, single and search.
Allow assigning workflow permissions (capabilities) to other users by editing teacher.
Improved records sorting by workflow state.
Additional replaceable tag (State - ##state##) on advanced search template edit form.