cleanup on web.js, divided routes into routes/common.js and routes/server.js