continue KT-3071 KotlinCompiler

extract cli-common to jar cli-shared — remove duplication from idea plugin and jps plugin
use standard util method
don't create extra set on WritableScopeImpl.getProperties
reduce memory usage — use OrderedSet instead of LinkedHashSet
don't create extra set on WritableScopeImpl.getProperties
reduce memory usage — use OrderedSet instead of LinkedHashSet
don't create imports list on clear if it is not yet created
cleanup getImports
continue KT-3071 KotlinCompiler