DEICH-5478 koha: add API endpoint to add and update library

Merged Benjamin requested to merge DEICH-5478-library-api into master

Closes DEICH-5478

Merge request reports