John Hamilton Gray — Scottish advocate and Anglican priest (1800-1867)