JBIDE-14733 JUnit tests for JQM Palette wizards code generation/insertion

Added comparing of text generated for text preview
and text inserted into file. They should be equal
when ignoring formatting.
Fixed New Footer wizard (JBIDE-14748) by always
assigning 'end-text' (even empty).