That sounds hillarious. Get some video. win big bucks.
I have heard of cats doing a lot of things to make sure you stay on their good side, and would bet that attacking the dogs after you "attack" them, is another one of these attempts at a wierd kind of bonding. As you probably are aware, you can't own a cat. In their minds, they own you. When they rub up against you they are marking their territory, not saying "I love you". Once a cat owns you, he will usually do some thing(s) to keep you attached to them, and it is usually something that they deem helpful to you. He is probably "helping you" disapline the dogs.
I'm not a pet psychiatrist, just experienced cat owner.