Server now closes sockets properly.
Minor cleanups
Relay tests implemented:
  - interface-id (integer, string, hex)
  - subnet selection
relay selection by link address implemented.
relay unit-tests fixed.