Worked on chat functionality some more
Created a functions file to house all of our server-side functions