Code cleanup based on IDE (intellij) warnings.

Remove unused/commented-out code.

Use emptySetOf( Type ) instead of asSet().

Limit references to the deprecated GraphDatabaseSettings.

Remove usages of deprecated junit.framework package.
Remove deprecated ProgressIndicator.

Add open ended ProgressListener to the ProgressMonitorFactory to support the one remaining use case ProgressIndicator had.
Merge pull request #808 from thobe/2.0-spring-cleaning

Spring cleaning