LUCENE-5930: IntelliJ config: drop resource-only modules, add module groups, and add module for lucene/backward-codecs, and fix up a bunch of other little issues (merged trunk r1624671 and r1624689)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1624692 13f79535-47bb-0310-9956-ffa450edef68