I've had experiences like these before, and personally, I think conversely that I might be doing things because I dreamed them. I mean if I've already dreamed them and it's sitting in the back of my subconscious, when the same precursor events reoccur irl, then my automatic response is to repeat my actions.
On a different note,
>>2 has a very good explanation of the psych side of things, but just to expand on what I know, dreams are often very unclear to our waking minds, whether it be due to the illogical flow of them, the massive amount of information in them, or something entirely different. When we have a deja vu or deja vu like moment, as we experience a sensory mismatch, we vastly desire to know where this has occurred previously, so we can ascribe them to vague (or even descriptive) elements of our dreams.
That's all I have on it. I may be no expert (trylouu is far more educated in these matters that I), but I hope this will help you in your research. Also, it's not impossible that you are psychic, but if you are, I expect to see you win the million dollar challenge ;)
If you're more interested in Deja Vu, there's an awesome vsauce video over it.