Ticket statuses revisited

* Drop resolved state
* Move status properties to ticket status table.