Biopolymer production from municipal and industrial wastewater streams