Added possibility for transfering tickets.
Fixed several bugs in ticket transfer code.
Merge remote-tracking branch 'origin/transfers'