I think the evidence on balance is in favour of Thomas being the son of John and Mary,but I can't find anything at the moment that provides incontrovertible proof.I suspect the Hannah Hughes,witness,is Hannah Philips(registered as "Anna" to William and Harriet in 1836) who married a Joseph Hughes( a "horse shoer") in 1st quarter 1860.
Regards
Roger