[FEATURE] Refactor server to use router.