Have link state monitor listen on a socket for incoming connections.
Tidy up link state server script.