Move webscript output handling to the resolution package to allow for more customisation.

closes #89