add support for connect middleware. change naming convention for .route to .dispatch