Pagination on addLicense. closes #636. Needs substantial test