Break srlie up into a cli and add a server interface.