add ssl support direct to node.js application and fix routing