Create hsdomain

this code was copied from https://raw.githubusercontent.com/phormanns/hostsharing-play/master/library/