Improve trimming behavior to trim down to eg 100 chat messages, rather than 100 messages/notifications
Throttle history loading on fast servers (which breaks the "loading previous messages" indicator)
Merge pull request #1141 from JabbR/improve-trim

Improve trim/history behavior