Minor corrections to error handling logic in httpu.
Initial work on maintaining a registry of discovered devices.