Refactoring of create ticket code

Still room for improvement, but use of async to tidy up callback hell