"After the Union with England of 1707, the kirk was, along with the legal system, one of the institutions specifically preserved from the dissolution of the state." . . . .