For one, read up on how to bleed our cooling system as that's undoubtedly one issue you have.
How long have you had car? If you'd lost a bit of coolant, you'll want to find a leak...and, btw, your thermostat is broken...broken open. Not an emergency, but not good for your car.
As far as losing power only when heat is on, that's an odd one...but I think that sound you've got is a bad pulley...and if I'm right, you should replace all three pulleys (2 tensioner and 1 idler) and check the other pulleys.
Tim is right...of course...that you should get codes read. You could try your regional forum and ask if anyone can swing by and read your codes. You might get more offers if you also post a photo of Marisa Tomei and pretend it's you...almost all the guys here think she's beautiful and would do anything for her. I won't tell!
Upcoming comedy shows: April 23, Tierney's Tavern, Montclair, NJ, 7:00 p.m. See Facebook for other shows and PM me if you can make one...love to see you there!
Mangofy your E46!