Moves "auto insert semicolon at correct position" feature to Scala editor

This feature always moves the semicolon to the end unless the cursor is
inside a for-comprehension - the only place in Scala where the usage of
semicolons is a syntax feature.

The "auto insert braces at corret position" is no longer supported by
the Scala editor because there are very few cases where this feature
really makes sense. Most of the time one can use a template to generate
code where the opening brace is at the correct position.

Fixes #1002056
Optionalize automatic close operations

The behavior of auto closing braces is complemented by another option.
Whenever braces should be closed automatically it can also be checked if
the close is necessary and if not then it does not happen. This behavior
already existed but the preference was difficult to understand, thus its
description changed.

All other characters that need a closing sign got a new preference. They
are enabled by default, with exception of angle brackets because in
Scala they are rarely used for surrounding purposes.

This also removes a hack in `SurroundSelectionStrategy` to prevent the
addition of a closing `>`.

Fixes #1001716