Add Apply case to ScalaCompletions. Fixes #1001218

This allows scalaCompletions to handle method invocation completions.
Also refactored scalaCompletions to tidy things a little.
remove unneeded comment
review comments - make stuff options
give correct start point in completion

for calls to methods in scope
remove val in for
fix midword method completions
add completion context, fix Apply edge case

In particular, we choose not to insert the argument list when we have an
Apply() context, similar to what Java does. This helps to reduce the
chances of messing up already existing code.
Merge branch 'master' of https://github.com/scala-ide/scala-ide into fix-autocompletion-inside-method-t1001218

Conflicts:
	org.scala-ide.sdt.core/src/scala/tools/eclipse/ScalaPresentationCompiler.scala
	org.scala-ide.sdt.core/src/scala/tools/eclipse/completion/ScalaCompletions.scala
move CompletionContextType to CompletionContext
remove debugging output
Merge branch 'master' of https://github.com/scala-ide/scala-ide into fix-autocompletion-inside-method-t1001218

Conflicts:
	org.scala-ide.sdt.core/src/scala/tools/eclipse/ui/ScalaCompletionProposal.scala
Removed references to scala-dbc.

Scala-dbc was not released since 2.9.
add additional method to test file

to make sure we don't regress by providing a red herring for completion
fix bug with Apply type completion

dotta found this, where we're still using prefix matching for function
applies, where we really shouldn't since we already know the function
name.
Merge pull request #564 from dragos/issue/remove-scala-dbc

Removed references to scala-dbc.
incorporating some of @dragos suggestions

avoid name duplication in contextType
remove side-effecting
try and use scope
remove closure
add scaladoc
Add a `cleanUp` argument to the `FlakyTest.retry` combinator

As evinced by the recent failures of the `pr-scala-integrate-ide` job, before
re-running a test we need to make sure that we clean-up any side-effect created
by the previous test run.
Merge pull request #566 from dotta/wip/add-cleanup-to-flakytest-retry

Add a `cleanUp` argument to the `FlakyTest.retry` combinator