Fixed bugs in workflow API with default status.
Added workflow_transition_get to workflow API.
Added stuff to db.setup to setup default user, workflows, etc.
Hooked workflows in project API.
Updated some stuff in issue API (still work in progres).
Added Instance model as base model.