fixed IntellJ setup to use the gradle way

This sets up the entire IntelliJ project, more than just module adding.