Restore Jython Shell mode for command history.

This will attempt to detect whether or not String-based history items
are single vs multiline and then convert. In other words, it'll
try to do the sensible thing for existing Jython Shell histories.

[1618]