How Britain has defended its coastline for nearly a thousand years since the Norman invasion – seeing off threats from Napoleon to Hitler.