Fix Emacs server startup and add `ec` command to start client.