Improve number of messages loaded in chat.

It will now output the latest 10 messages plus the ones that are sent when your page is still open.
Previously simply the latest 50 were loaded.