component.json: add remotes
Use sockets properly in tests

It seems most tests didn't really realize they were calling send() on
a different object than what they should.
It works fine with the old port API, not with the new one.
update components to the new port API