Boston's harbor connected the town to an Atlantic world of merchants, privateers, smugglers, sailors—and pirates.