Added checks for TLS errors when (re)starting the TLS transport

Ignore-this: fd817e5f6fe74c64df213ef04b66d49e

darcs-hash:20091014104238-1e3d8-7bc615af97495eb63c3ef772987b19ec3276ee0f
Moved tls.certificate setting per account

Ignore-this: 4816289b1f53709d9b733be092e08ae7

darcs-hash:20091014113614-1e3d8-8b1d10f57901d0a1e52c212f80fcfdf3b3c14d79