Improve publish logging.

Assign each publish message a UUID and include this in error handling.
Merge pull request #2 from jmchilton/publish_transaction_uuid

Improve publish logging.