Rework gradle plugin, IDE plugin and shared Kotlin tool modules (#911)