log messages as debug messages
refactor request sending into a single method
print ids intead of logging them

makes it easier to export in variables and reuse in a bash script
fix double slashes in url
Merge branch 'refactor_restapi_client'
minor fixes after restapi client refactoring
Merge branch 'refactor_restapi_client'