backwards compatibility with some legacy projects [cleanup pending]
add some debug for socket closing
When registering with host, remove duplicate HEARS, to prevent disconnections
Merge pull request #1 from noam-io/backwards-compat

Host registration fixes