automatic routing index which reads all the files in the same dir and adds their routing rules to the server
use the routes index for routing
changes server.js to index.js and require the lib
moved template routes to template.js in the routes dir