Simplify code.
Since TwitterStream.sample() is asynchronous, it is moved to
main.WriteTweetStream class.