Rin and kakashi weren't anbu.. kakashi became anbu after that.. at least i can't remember anything where it was said that rin was anbu and the fillers about kakashi's past are in agreement that he became anbu after rin killed herself.
You also don't seem to remember that obito already explained that he knew kirigakure made rin sanbi jinchuuriki and that they wanted to use her to attack konoha, by releasing sanbi when she was there, and that that's why she killed herself.
And Yes madara is a manipulative satanist. everyone that participates in the eye of the moon plan is madara/satan(ist), doesn't even matter if you are consciously being part of it, as long as you're one of the pawns. like he said.
Like satanism, madaraisms goal is to revive satan/madara making man god on the earth. (meaning a few or just one man ruling over everyone else through manipulation keeping people stupid keeping knowledge away messing up their food so they don't think clearly, manipulating their worldview by spamming them with all kind of bullshit with fake science and television etc. making them willing slaves, to summarise it.. genjutsu.. that's right eternal tsukuyomi)