node.js connect middleware that returns pre-configured responses