Hi , I am basically having the same problem.
I downloaded Yosemite Beta 3 few weeks ago, and this same problem occurred. I wasn't able to do anything with the laptop as it loads all the time. I contacted Apple and they told me I should restore from my backup which enables it to get back on Mavericks. When the official Yosemite was launched, I installed it, and now it has the same problem. The laptop lags like crazy everytime the charger is plugged in. I am unable to Skype, watch a movie, browse the internet, open an App or even type a document while the laptop charges. Im not sure of the solution, but will try calling apple again. Safest bet is to downgrade to Mavericks by backup i guess. Oh yeah, i have about 150+ Gb memory but when i checked dick utility it shows I have 18.6 mb free space and the other 36 GB.
Specs:
MacBook Pro Early 2011
13 inch i5
4GB Ram
Yosemite....