Add 'map' option to streams to allow streaming data to be transformed

Makes it easy to pipe directly into a log file with formatting, as
well as convert one streamed format into another if needed.