LPS-34508 Won't reset the elcontent when there is no image in the structure
LPS-34508 Don't use String.isEmpty()
LPS-34508 Source formatting
LPS-34508 Reuse existing logic
LPS-34508 Source formatting
LPS-30419 Media Gallery root folder and breadcrumbs
LPS-30419 Revert
LPS-30419 Apply the same pattern that already exists in DLImpl.java
LPS-33542 Fix NullPointerException
LPS-33642 LPS-34604 Fix NullPointerException
LPS-34603 added lookup for JavadocClass
LPS-34603 changed api UI to show class javadoc, too + fixes small glitch when return type is an array
LPS-34603 SF
LPS-34478 Constrains dockbar add_content preview dialog to the viewport
LPS-34159 Enables dropping categories in not yet parent categories
Updating Alloy to 4a5c75c;LPS-34421,LPS-30784
Updating Alloy to 0eb0533; LPS-34421,LPS-30784
LPS-34503 - Clear menu buffer after menus have been loaded
LPS-34503 - Source formatting
LPS-30038 Template Editor displays the Velocity sample template even if other Language Type is selected

I've decided to solve this by reloading the page when the language is changed. That way not only the default script is loaded but also the palette, which was not being changed. It also makes any code that depends on the template that we may add in the future automatically reload. One important thing to note is that we need to detect the case when the user is just creating a template and before any save he changes the language. In that case we are using the undoManager to avoid sending the default text as if the user had entered it. That way it will be automatically replaced with the proper default script for the new chosen language.