RESTEASY-845 support setting the hostname
merging upstream
Merge pull request #273 from KurtStam/master

RESTEASY-845 support setting the hostname