Fleshed out some basic functions for the client side chat code.