Chaining multiple parts of connect middleware