Scotland's difficult route to referendum