Samuel Whineray, Mayor of Kendal (1845–1846 & 1848–1849)