Beginning to rewrite chat app to use endpoint calls.