DOC: dev notes on stunnel
BF: Fix failJSON for stunnel