Changes .api extension => .public.
Refactors editor router to use commands.