Too many unrelated changes, see details

Add logging
Make groups for user configurable
Add trayling new line to hostname
Install and configure grub2
Improved handling of subprocesses
Add module to log output of subprocess