Moved all output functionality inside a Response class and created a method for each output type.

By specifying a class method as a output callback instead of keeping
them in the display method modules/application can provide custom
output callbacks.