ajax-y magic

Theoretically this should allow the chat to be more chat-like and not require a page refresh.
I added it to the config.php file. I probably should've put it in the sample as well. That way, it's available to the others such as messages.php.