Added logging of output to a file.
Pass true to console.clear() to keep the log file in a time stamped file, or pass a string to name the file.  Or ctrl-click the Clear button.
Pass the panel's .swf path to the JS code via console._swfPath.
Put a try/catch around the code that creates the local connection, to avoid error when the connection already exists.
Renamed module vars to remove the __.
Moved the function that evals the console code to a parameter that's passed into the module so that it can't see any of the module variables.