Tweaked logging and SSL stuff in examples