implement ostream_joiner. Reviewed as http://reviews.llvm.org/D16605