Allow command-line lexicon and lts building.

This changeset allows to use command-line instead of GUI for lexicon and LTS builiding, thus allowing for a more automatic procedure. The GUI is still available and the functionalities provided by the GUI and the command-line should be the same.