Britain's greatest surviving ancient wooden building, a huge medieval barn dubbed "the Cathedral of Middlesex" by John Betjeman, has been rescued for the nation after years of neglect at the hands of an off-shore property developer who bought it for £1.