Add tx history of groups assigned by plugins using `GroupHistory{Writer,Reader}` and `MempoolGroupHistory`, and add the corresponding HTTP endpoints `/plugin/:plugin_name/:group_hex/{confirmed-txs,unconfirmed-txs,history}`.
There's a bug in MempoolPlugins, where the plugin_outputs fed into `self.group_utxos.{remove,remove_mined}` and `self.group_history.remove` are incorrect—they are missing the outputs spent by the inputs, because we only store the outputs created by the plugins.
However, the `remove` functions also require the data of the spent inputs to be present, otherwise we get an inconsistent state.
We fix this by storing spent outputs of each tx by txid, and remove it when mined or removed from the mempool.
This is much simpler and probably faster than fetching inputs each time we remove a tx.
Note how the WebSocket test changes; it previously skipped tx3 removing because it *spent* the tx input, which was not detected. Also, we forgot to test tx3 to be added to the mempool there.