Microbial fuel cells for the treatment of wastestreams with energy recovery by