Add gen-idea sbt plugin to work with IntelliJ. Also fix dispatch dependency that was causing gen-idea to fail.