Panel output fixes. Code cleanup

Panels now store their output in a buffer, which is sent to stdout when the panel is activated
Quick check to see if file exists in file upload
Moved PanelManager to a static variable in Program.cs