Implement setting hostnames on machines

This fixes #36.