Supports running with run button on a scala file, in which there is a st...

...andalone singleton object with a main method. This commit also makes the 'run smart command' mode, in the interactions pane, off defaultly and eliminates the error message previously seen under this mode.