[#71744884] quantity for license type

Squashed commit of the following:

commit c124ec87d9cc6bd1eff316cf6ced9a36504ff088
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Jun 19 16:33:07 2014 +0200

    tests

commit 0acaabf4707ddbff6d63c70d1fb3a90fb76bf122
Merge: f820a47 5aafe91
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Jun 19 15:24:01 2014 +0200

    Merge branch 'master' into mk_71744884_quantity_license_type

commit f820a47bd6cd81ebff77772150d68b7315e377b6
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Jun 19 15:15:54 2014 +0200

    impl