Fix display of thread search terms
Make Search->thread_post_update() take $data too

It used to just take $id, but this makes it consistent with
Data->thread_post_update().
Fix 1-Schema.sql

1-Schema.sql appears to have been committed while conflicted.
This should be the correct version.
Show chatting users that aren't viewing

Previously, if a user was chatting but not actively viewing the board,
they wouldn't be listed in the active list.
Improve tracking of chatting users

Users are recorded in the DB as chatting when the chat history is
loaded.  Previously, this was only done if chat had changed since
their last view.  This meant that the chat count would go to zero
if nobody was actively chatting even if people were viewing it.

Now users are ALWAYS recorded as chatting when the history is
loaded, so the chat count should reflect the number of people
viewing at all times.

This puts slightly more load on the database (that is, one
additional write per chatting user per five seconds or whatever).
Merge pull request #11 from jumpsuitious/fix_active_chatters

Fix active chatters
Merge pull request #12 from jumpsuitious/search_tweaks

Search tweaks
Fix active list

7989d3d's approach to adding chat users to the active list was
broken (array_merge() with numeric keys doesn't merge items
with the same key).  This probably works better.

As a sidenote, this increases CPU usage slightly as it requires
resorting (of mostly sorted items).  The alternative would be to
change the active members database query to include chatters
from the outset.
Merge pull request #13 from jumpsuitious/fix_active_chatters

Fix active list
Add absolute media show/hide capability

A truthy "media" field in requests means to toggle the session's
hidemedia setting.  This commit also lets "media" take on two
absolute values -- "enabled" and "disabled".  This seemed like
a reasonably elegant way to make chat media enable/disable
work consistently.
Chat enhancements / tweaks

This is a first step at integrating some functionality from the
chat enhancement GreaseMonkey script.

- Disable media in chat by default (added enable checkbox)
- Focus text entry box on page load
- Disable autocomplete on text entry box
- Clear text entry box earlier (prevents double-sending when laggy)
Make ignore work in chat

Previously, ignore settings did not impact chat.
Merge pull request #15 from jumpsuitious/fix_chat

Fix chat
add date_first_post to schema
Allow threads to be uncollapsed incrementally

This is just a quick stab, but it seemed to pass my very slight
testing.
There's a config setting for how much to uncollapse at once.
Strip excessive Unicode combining marks in chat

Application of many Unicode combiners render annoyingly
(incorrectly?) in common browsers and OSes, and this
fact is abused.  The following should limit each normal
character to a single combining mark and alleviate the
problem without stopping many legitimate uses of
combining marks.

Doing it on the browser for now so that the server isn't
burdened with it.

It's possible this should be done for all user-entered
text, though as far as I know it has only been an
issue in chat so far.
Merge pull request #19 from jumpsuitious/no_excessive_unicode_combining_marks_in_chat

Strip excessive Unicode combining marks in chat
Cosmetic fix for thread uncollapsing
Make uncollapse count a preference

Note that this changes the new config entry to a default.

Also, this commit fixes a minor bug where the default value
for collapseopen could be set incorrectly by the member page.
Cosmetic tweaks for incremental loading