make sdn socket connect rather than binding
also some test apps for sockets
still an outstanding bug - extra socket is being put into P->sockets in sdn.c, need to track this down