Add hostname dialog plus minor refactoring
Fix check for root password
Add command line option --debug to do a dry run.