separate terminal-UI component (that is usable independent of any particular server framework) and Mantissa authentication stuff
All that horrible glue you have to copy and paste out of Twisted to make a command-line Insults program.