LPS-33007 - Implement palette on creating Freemarker templates
LPS-33007 Fix bug un first load
LPS-33568 Small improvements to available context objects  In line 240 I've changed in purpose the "if" clause, because when showing that variable in the palette I realized that it would be confusing to the user that it's only there if there is only one item and not when there is more. I also added the portlet preferences object because we cannot show in the palette each individual preference value.
LPS-33568 Obtain palette items for the Application Display Templates
LPS-33007 source formatting