Refactored server.js to use the new stretegy to process routes.