Adding support for licenses on resources, fixes #29