Bug 704030 - Make the "all connections closed" check available on non debug builds. r=vladan.

--HG--
extra : rebase_source : 6f39e1e00b39e7356d29c4f5e3f77fa51ba49a16
Bug 839962 - Part 1: Replace some XPCOM refcount NS_ASSERTIONs with MOZ_ASSERTs. r=bsmedberg
Bug 839962 - Part 2: Replace some XPCOM thread NS_ASSERTIONs with MOZ_ASSERTs. r=bsmedberg