With Catalonia threatening to declare independence from Spain, we look into the origins of the dispute between Barcelona and Madrid.