Output buffering

Added in an output buffer to capture output generated by targets
as proposed n rfc #14
Merge pull request #16 from MaxVandervelde/output_buffer

Output buffering