E-commerce juggernaut Amazon has abruptly scrapped plans to occupy a proposed $300 million mega-warehouse at a former Westinghouse campus near Pittsburgh, representing the latest project that the company has walked away from after criticism from local residents.