Express 3.x support

I first merged the visionmedia master in order to get all updates from
them.
After this I reapplied the changes needed for
express-resource-middleware.