Initial version of the socket server and R bindings.