Magrathea’s founders didn’t have the Defense Department in mind when they started out—but they made the pivot.