I second Better Touch Tool. I think I've seen middle click settings for it, I don't use that, but I extensively use the gesture customizations and it's great. You can also customize it to do different things based on how many fingers click, etc, and you can also use it for window snapping (which is a must for me) and so much more. BTT is a great utility!