Get things ready for bosh
Only use transports listed in the config.
Add initial support for BOSH.

Works so far with Prosody + happy path cases. Needs some stress testing
in bad network conditions.
3.2.0