A 55-year-old Hartlepool library is reopening as a community hub after a quarter of a million pounds was spent on its refurbishment.