Making setOutputStream() chainable so that multiple stream modifying plugins can coexist

This will allow for peaceful coexistence of multiple stream modifying plugins. With this change you can run testid and htmloutput simultaneously, without one plugin monopolizing stream handle.