CBD-924:  print full HTML page, write debug output to STDERR

Change-Id: I6de5b86d5ed596d7da7a915f7cb74ef65480c7cd