Added tests to RequestBuilder. Refactored HeaderOutput class. Refactored StreamHandler class.