Feature Request custom context menu

Would it be possible to develop an API to allow plugin context menu items? And/Or file selection sensitive plugin context menu items? Basically I would like to write something that works like http://tortoisesvn.net/.