cleanup
trouble... need to split up the old protocl class between the emacs connection and the agent connection.  This will require reworking logic in get_buf/create_buf in both places.