moved router.js into root directory to centralize server/client routing.