Implemented ticket stateless ticket handling.

Some issues with multipart upload need to be further investigated.