Ensure everything is compiled before displaying the dropdown
Factored out common behaviour
Issue #12
Allow to move elements in the tree.
Merge branch 'OpenETCS/master'