moved the capture output helper into the common set of helpers

It really should be common and included on the base view b/c there
is a global config option that drives whether to capture output or
not.