Better use of compiler APIs.

Unload the unit after finishing the test.
upgrading sbt version to 0.13.6
Mark the test as flaky (5 retries) for good measure.
Merge pull request #828 from dragos/issue/flaky-completion-test

Better use of compiler APIs.