implemented pub_server; refactored log_record_server and config_server to use pub_server