Added step log

Added a log for step through a script (Not visible on interface yet).
Simplified hiding of panels with a new function and a variable that
contains the last panel that was visible.