Socket connections; WARNING: this build is not yet complete; missing JSON output, stanford initialization, and command line sockets