added debug panel
hook debug console back up
report upload errors to the user
refactored a lot into the master class