Brexit: What is in Boris Johnson’s new deal with the EU?

A revised Brexit deal has been agreed by the UK and EU. What does it contain?