Finish chat implementation.
* css/chat.css: small tweaks, add online users field.
* js/chat.js: support new status message types, cookies for
unread messages, online users count.
* src/chat.php: add online users field.
* thread.php: add chat module.