[#71551062] integrate licenses into CSV export

Squashed commit of the following:

commit ea89244315025f780d7f47c4d83e303047d2d1fb
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri May 30 12:51:48 2014 +0200

    refactoring CSV export