Move configure_file after setting the variables.
Huge refactoring.

* Split backend and frontend.
* Local socket based communication.
* Exit gracefully on SIGTERM and SIGHUP.
* Extensive logging.
Add missing files.
Remove unused options from sddm.conf.