Started cleaning up CTF chat code.