For the first time in years, San Francisco’s Pier 80 — which in recent months has been the site of an emergency homeless shelter — will revert to its intended purpose: a working cargo terminal.