As water goes into increasingly short supply, scientists and engineers struggle to create local solutions for a global problem.