added buffered data collector for send metrics

Nice.  This is much clearer than the code it replaces.