Hannah Cowley’s biting 1780 comedy of manners has been transplanted to Georgian Edinburgh for a production that feels both timely and timeless.