Reorganization; reallow palette files from command line

* Reorganization initialization process, in part to make it easier to recognize and load palette files from command line.
* Change in previous loading behavior or palette files: now when giving a palette file, the following dem or all following layerfs will use it, until the next palette file is specified.
* Loading data from GUI is currently disabled.
* A few code style changes here and there...