pubsub: Auto-ack messages optionally

@silvolu, can you take a look?