Refactor Koha paths support code.

Makes it possible to access the host adress and port separatly.
"Legg til bok" scenario: interim checkin.

Authentication and adding the book record to Koha works, but in order
for an item to be attached to the record, we first need an
itemtype.
Add feature for adding itemtype.