added getCon, available

getCon makes the socket, returns the connection

available makes a json formatted request for all of the available services subscribed to, writes it to the connection and returns the result.
Corrected scope of list