Web version build

POM modified with profile for building standalone and webapp.
License update with GPL terms.
DocumentUtils fix on ranking.