More work on server operation to be socket io based.