Main now used with parameters to call into the http and the telnet clients.