Water treatment and waste management