HCSVLAB-501, HCSVLAB-153, HCSVLAB-154: Refactored all licence management functionality.