A middleware based node.js redirection engine