mod_bosh: rework previous commits and make 'em XEP-0124 compliant.