Add edd_get_host() and edd_is_host()

Fixes issue #2157