Fix for stuck queue messages: wrap processing in stomp transactions so our lack of an ACK if PHP dies actually triggers redelivery.
Fix for stuck queue messages: wrap processing in stomp transactions so our lack of an ACK if PHP dies actually triggers redelivery.

Previously, messages once delivered would just get stuck in the queue seemingly forever if they never got ACKed.
Note this could lead to partial duplication, for instance if the OMB or Twitter queue handlers die after 1/2 of the outgoing sends.

Recommendations:
* catch exceptions more aggressively within queue handlers (so only PHP fatal errors are likely to kill in the middle)
* for processing that involves sending to multiple clients, consider a second queue similar to the XMPP output, eg for OMB:
 - first queue gets delivery list and builds message data, enqueueing it for each target address
 - second queue can handle each individual outgoing message (and attempt redelivery etc separately)

This would also protect better against a recurring error preventing delivery in the second part, and could spread out any slow sends over multiple threads.

brion/StatusNet,sikevux/bsk-social,studio666/gnu-social,csarven/statusnet,xebia/statusnet-oauth2,minmb/statusnet,studio666/gnu-social,brion/StatusNet,zcopley/StatusNet,UngPirat/freesocial,gnusocial/mainline,chimo/social,d3vgru/StatusNet,gnusocial/mainline,bankonme/gnu-social,csarven/statusnet,bankonme/gnu-social,d3vgru/StatusNet,furtherfield/gnu-social,zh/statusnet,csarven/statusnet,charnimda/lgbtpzn-social,faulteh/gnu-social,znarf/statusnet-ladistribution,charlycoste/StatusNet,faulteh/gnu-social,eXcomm/gnu-social,Piratas/tortuga,sikevux/bsk-social,studio666/gnu-social,UngPirat/freesocial,zcopley/zcopleys-statusnet-clone,zcopley/zcopleys-statusnet-clone,xebia/statusnet-oauth2,brion/StatusNet,gnusocial/mainline,charnimda/lgbtpzn-social,Piratas/tortuga,shashi/StatusNet,Piratas/tortuga,csarven/statusnet,d3vgru/StatusNet,faulteh/gnu-social,furtherfield/gnu-social,foocorp/gnu-social,znarf/statusnet-ladistribution,zcopley/StatusNet,studio666/gnu-social,foocorp/gnu-social,chimo/social,furtherfield/gnu-social,shashi/StatusNet,bankonme/gnu-social,eXcomm/gnu-social,chimo/social,faulteh/gnu-social,minmb/statusnet,eXcomm/gnu-social,bankonme/gnu-social,xebia/statusnet-oauth2,charlycoste/StatusNet,foocorp/gnu-social,charnimda/lgbtpzn-social,furtherfield/gnu-social,znarf/statusnet-ladistribution,minmb/statusnet,shashi/StatusNet,zcopley/zcopleys-statusnet-clone,eXcomm/gnu-social,zh/statusnet,gnusocial/mainline,UngPirat/freesocial,Piratas/tortuga,sikevux/bsk-social,zcopley/StatusNet,zh/statusnet,charlycoste/StatusNet,sikevux/bsk-social