I think the only viable option would be to leave the UK. Not just you physically, all bank accounts and insurances too. When you have set up the company somewhere else (maybe netherlands, germany or sweden) you would have to renegotiate all contracts with all your clients, have new laywers, new accountants, etc...
I can not think of any way other than leaving, that will not compromise either your product, your customers or your integrity.
This is 'scrorched earth' if you will, without 'fine-sounding, useless slogans'. Consider this: If this crap becomes law, you certainly won't be alone when leaving. And when a critical amount of developers and entrepeneurs leave the UK permanently, the economy will suffer... greatly I think. And that, sad as it may sound, might be the only argument politicians would consider, when it comes to signing this bill.