update gradle-api artifact to version 1.6 this is required to make kotlin gradle plugin compatible with upcoming Gradle 2.0
cleanup Gradle API deprecation warnings to make plugin compatible with upcoming Gradle 2.0. This includes moving minimum compatible version from 1.4 to 1.6
Fixed KT-5077 Code completion inserts FQ names inside lambda

 #KT-5077 Fixed
OuterClassInfo refactoring
New tests for outer class info
Fix visibility for main script function
Write outer class info for closures
Minor cleanup in FieldOwnerContext
Minor, fix parameter type in MemberCodegen
Merge ParentCodegenAware and ParentCodegenAwareImpl

Unextend ExpressionCodegen from ParentCodegenAware and make its
getParentCodegen() non-null. This fixes some nullability warnings related to
getParentCodegen()
Minor, reorder code in ExpressionCodegen
Simplify ClassFileFactory

Get rid of outdated assertions, mark createText() as TestOnly, add
NotNull/Nullable annotations.

Inline useless forClass/forTraitImpl/... methods, because this way it's simpler
and some code was already using newVisitor() anyway
Refactor PackageCodegen and ClassBuilderOnDemand

Make ClassBuilderOnDemand non-abstract and create its instance directly in
PackageCodegen's constructor
Remove heuristic from PackageCodegen

Implement the logic in a more straightforward way, move the heuristic to
JavaElementFinder where it was also used
Make ClassBuilderOnDemand extend ClassBuilder

Introduce DelegatingClassBuilder, refactor RemappingClassBuilder to use it
Create and store necessary codegens in MemberCodegen
Fix broken test data file
Update to IDEA 135.909 (13.1.3)
Evaluate expression: pass this as first parameter
Add information about codeFragment and sourceFile for exceptions from Evaluate Expression