JBIDE-18670 HTML5 Palette: Palette model refactoring

new palette model implemented
Is it enough to be able to order groups with just two positions "top" and "bottom". Can we implement something that will order any number of groups?