Update to work with the latest IPython widget branch

(IPython jdfreder/widget-msg commit 86eac83)
Tighten the database firewall a bit, and add lots of (commented) firewall logging.