My heart goes out to you. I read your post, and had to do some cleaning around the house, and the whole time I found myself thinking of your situation and how to possibly respond to help.
I can relate because in the last several months I have been dealing with a similar situation with my 3 yr old girl. If I come to her room in the morning, she'll scream at the top of her lungs for me to get out of there, that she only wants her dad.
Not taking it personal, as hard as it may be, I think is important. As clever as 3 yr olds often are, they obviously don't completely understand what they are doing & why, and they always do look for your reaction. I have to admit that at the moment, I don't often know how to respond either.
Something to think about is, how do you react? Could that reaction somehow encourage your daughter to keep acting the way she does? For example, if you do get emotional, be it mad or sad, she may feel like, "wow, look what I could do to Mom just by saying or doing this. I have a lot of power here." She may not even completely realize that, but it may encourage her to continue that behavior. I would continue to say that you love her very much, and not make too much of it.
Another thing is how does your husband react to what she does? Since she is at this stage where pleasing him is so important, having him tell her that Mom loves her very much, and that HE loves you and her very much, and that is an important part of being a family, may also help. Also, if her behavior crosses boundaries, it is important for BOTH of you to respond, not emotionally, but matter-of-factly that if you do this, then this will happen.
Another idea to throw out there that could be totally not relevant to you, and since I don't know you or your situation, I thought I would just mention it if by chance it could help. I just hope no offense is taken. Do you have the maybe hidden belief that you don't deserve to be loved, so then it becomes a fear that others will not love you, so you may act more needy, begging for love, or even without realizing manipulating (by acting a certain way) to get that love, and maybe she picks up on those vibes?
Again, as others have said, i think not too much may need to be made out of all this. Children like to test their environment to learn from it, and different children have different ways. As long as she knows you love her, and you know that despite her behavior at times, she does love you as well, hopefully this will resolve with time as long as there are no major reasons or reactions that encourage her to make this a pattern.
ok, now i probably need to take my own advice:)