Added a check for project tree refresh to only execute on OSX.
Added a check to only activate the Output window if it's not activated.

This reduces flicker by redrawing the project tree only when needed.
Improved handling of upvalues with __tostring method in the Stack window.
Added centering of current line during debugging.