A new book shines a light on the dog breeds shaped by Scotland over hundreds of years - and which now face an uncertain future.