Avoid content being overwritten in editor


This adds a listener for the itemSelectionChanged signal to update what item is currently selected in the script editor. It's a proposed solution to address this bug:

https://bugs.launchpad.net/mudlet/+bug/1377401

Though only reported for scripts, this affects all other items as well, which this pull addresses.