model IDEA project libraries

- experiment with "gradleGenerated" XML attribute that allows to recognize (and overwrite) those project libraries generated by gradle
extracted Library base class, improved Javadoc