Prepends ids of created tickets

Also allows leading tabs or two spaces for indentation.
Also lots of whitespace fixes. Sorry.