Media Player starts playing when I unplug headphones
This is a known bug in Android (even in certain Eclair systems).

There's a widget called Headset Blocker that when added to any of your homescreens and activated prevents the music player from playing whenever you unplug your headest. Freeware and it works. See if it helps.