Move server config and route config out of server/index.js file.