Significant refactor of PSBT, less global leaking :D