Rebased: #16

 #16: Added pagination for tickets

 #16: Add fragment caching to ticket listings on a project

 #16: Implement tidier caching for the tickets list on the projects page

 #16: Ticket notifications are now a background job

 #16: Fixed pagination

 #16: Fixed routes for log out

 #16: Fixed login with twitter