Novel Applications of Waste Treatment Technologies to Generate Energy and Treat Water