Rewrite and simplify output handlers.
Clean up subscribers
Merge pull request #255 from Olivine-Labs/v2-output-handler-base

Rewrite and simplify output handlers.