Added sorting algorithm duration field.
Added last time used field to tickets.
Modified auth system

Tickets are now uniquely generated on every auth request.
Tickets now expire after 6 months of non-use