lib: add basic authentication for HTTP requests
lib: improve `/targets` service (“output format”)