Biopolymer production in microorganisms and plants