Add sbt-idea plugin
Make improvements based on IntelliJ code analysis
Optimise imports