spm middleware for connect, express and node.js