reorganizing where outbound processing happens, some updates to sageproto, and minor fixes to ansi