Fix host and host tests.
Fix http api errors registration, now register by pointer, as it returned from everywhere not by value. Validate port for http api. Pass new random port for http api in tests.
Fix http api errors registration, now register by pointer, as it returned from everywhere not by value. Validate port for http api. Pass new random port for http api in tests.