Create service class for tickets

I create the TicketService class and move all common code concerning
tickets to this class.

Furthermore, I disable the delete button in the ticket list for
non-admin users.