Add support to set the hostname

Return type on its own line, see https://github.com/calamares/calamares/blob/master/HACKING.md.
There's also an astyle config in the hacking directory.