Revisit ticket status

Cleanup status change form
Add resolve to ticket ticket view
Use the new status table when checking for overdue
Drop status column in favour of status_id