Extract Router from Worker; separate reusable server functionality from CobSpec-specific routing