transformPlainTextToHtml: moved to tools, changed parameters, added tests.
Clean up in firePasteWithDataTransfer.
Changed generateUniqueId and moved to tools.
Code style.
Clean up tests, split setData-getData tests.