kill. the. dock.

you need the terminal for getting rid of the 3D:

defaults write com.apple.dock no-glass -boolean YES; killall Dock

found it at ShaunInman .

btw.: if you want that as an on/off switch: there is an app at eternal storms, called 2DOrNot2D.