ajax-y magic

Theoretically this should allow the chat to be more chat-like and not require a page refresh.