In the 1700s, murder, misery and unnatural death was rife in the slums of Scotland’s historic capital city.