Refactoring for better transitive support and IDEA project files. Also renamed run dep group to runtime