Some 1.4 million people live in Rio de Janeiro’s favelas, the run-down, ill-equipped neighborhoods that have become known for crime and poor living conditions. But the government is moving to improve conditions in those favelas and, so far at least, there are signs of success.