Refactoring of tickets controller to fetch the ticket in a before filter...

... for relevant actions.