File manager middleware for node.js