To end the confusion Tobi is a Madara Clone engineer by Zetsu
I wish people would have caught this after the Kage Summit, Sasuke Vs Danzo, and Bee Vs Kisame. Tobi is a freaking Clone of Madara. The whole idea was for Zetsu to create a clone and have it carry on his plans. Kage Summit he told Oonoki that he was a shell of his former self. Danzo even refered to him as madara. After Fuu infected his arm he just yanked it off then put another one on after the Danzo vs Sasuke battle. After the battle of Bee and Kisame you see Zetsu tranform the body back after death. For argument sake let's say Madara did transfer the power of the rinnegan to Nagato, it was so he could revive his dead body that again is why Tobi say that he was supposed to use that jutsu on me. Same reason he was shocked that Kabuto found the real dead body of Madara because he thought it was hidden well enough. He may have at some point decided that he was just going to try and make himself the Jinchuriki of the Juubi if he could but please realize he is a Madara clone. He didn't just refer to himself as Madara for amusement or to stir up pandemonium.