Contaminant Removal and Resource Recovery in Bioelectrochemical Wastewater Treatment