NILAND, Calif. — The idea of replacing crude oil with algae may seem like a harebrained way to clean up the planet and bolster national security.