Fix unused variables
Issue BOSH requests asynchronously

Multiple simultaneous HTTP requests are necessary for sending
consecutive messages (or, to be precise, sending anything after sending
a message).