First work towards v0.1.4; accumulate activity until the end of the
script, then send when the user exits R
Lots of changes