Restoration of a historic town hall in Kent has been completed as part of a £10.5m project which took two-and-a-half years.