Add misc.Macro actor

Replaces #149 
Closes #142 
What about writing to some StringIO object in memory?