Break liz-tent into a command and a lib.