Added header and footer support for formatted output in case its needed.
Output in a resource is no longer being sent via return but by using a method inside abstract controller for a better control over output
Changed the mode of how the output is being displayed from a resource
Updated demo to show how you can add a header and a footer to your output