Prevent NoSuchElementException in Extract trait.

Fixes #1001967
Fix race condition due to call of `Tree.symbol`

Calling `askOption` directly in the traverser is extremely expensive,
therefore it should happen as less as possible. Because the check if
the symbol exists is only necessary for dynamic types, which are not
used very often, it is only done when no other information in the tree
could be found.

Fixes #1002132
Merge pull request #711 from sschaef/t1002132-race-condition-due-to-symbol-call

Fix race condition due to call of `Tree.symbol`
Update UI after completion is applied and no linked mode is created

After the completion is applied to the underlying document, the editor
needs to be updated. Because the cursor position is independent from
the document content it needs to be updated separately, which was
forgotten in the case that no linked mode is created.

Fixes #1002151
Remove dead code in `CompletionProposal`
Merge pull request #717 from sschaef/t1002151-wrong-cursor-position-after-completion

T1002151 wrong cursor position after completion
Merge pull request #714 from huitseeker/issue/1001967

Prevent NoSuchElementException in Extract trait.
Adds support for Scala 2.12
To squash
Forgot to update the folder names
Copy the needed files
THIS CHANGE NEED TO REVIEWED BEFORE PR

Remove the dependency to the bundled Scala 2.10
One more trace of 2.10
Typo to squash
Adds 2.12 support in ScalaInstallationTests
Adds 2.12 support to ClasspathTests
Adds support for 2.12 in breakpoint tests
Bumps to master sbt version