The Edinburgh doctor who fought killer disease from his flat and brought hope to the world