Gloucester looks to preserve working waterfront, expand into maritime tech