Don't override host in get_bind_endpoint.

Also remove unused get_env_bind_endpoint.
Merge pull request #106 from hughsaunders/get_bind_endpoint

Merged automatically by jenkins after successful build test