Added an IntelliJ project for the Java library. This entailed considerable reorganization of the source files.