Implement setting hostnames on machines

This fixes #36.
Merge pull request #49 from lndbrg/implement-hostname-on-nodes

Implement setting hostnames on machines