Make domain a configurable variable. Improve request error logging.

Signed-off-by: Shai Sachs <ssachs@ngpvan.com>