BOSH Don't crash on timeout reply to request
Reduce number of uncaught crashes when things go wrong
* Catch all errors on connection steps
* Exit nicely if transport:init() fails
* On parse error send an error message to owner rather than crash
Allow passing of timeout to bosh and tcp