After this working-class port city became the largest in America to declare bankruptcy in 2008, it began to reinvent itself, and for the first time in five years, the city expects to have enough money to do such things as fill potholes, clear weeds, trim trees and repair tennis courts.