Added a debugging capability for widgets

Now they can be run as standalone programs and they print their output
Merge pull request #4 from ludat/widget-testing

Added a debugging capability for widgets