Only use the whole text as search snippet when it's the first match
Fix the snippet search to continue after the previous match
Merge pull request #545 from splitbrain/snippet_fixes

Snippet fixes
unit test for FS#2173
fixed pagetools being inaccessible on screens lacking necessary height, and aligned them to content when on smaller screens
add Reply-To and Sender to whitelist for cleanAddress FS#2916
improve PHPDocs of Mailer
added title to video/audio tags, use title for fallback links, refactored duplicate code
updated syntax page to include recently added video and audio formats
fixed typo in phpdoc
Add ordering to event handlers

Allows a sequence integer to be supplied when registering to handle
an event.  When processing an event, handlers (hooks) will be
executed in ascending order of their sequence number.  If two or
more handlers have the same sequence number their order of
execution is undefined.

A handler wanting to be first, should use -PHP_MAX_INT.
A handler wanting to be last can use PHP_MAX_INT.
There may be conflicts if two or more plugins use these values in
the expectation that they will guarantee being first or last.
An event object used as a string will return its name - the event name
since php 5, no need to access objects by reference
Merge pull request #549 from splitbrain/mailreplyto

add Reply-To and Sender to apply cleanAddress
Merge pull request #552 from splitbrain/event_handler_sequencing

Add ordering to event handlers
Merge pull request #550 from splitbrain/video-audio-additions

Video/audio additions
add appropriate visibility keywords to event properties
remove reference operator from object, no longer required
Ensure hook array is always in the correct sequence

Changed to sort on add from sort on process for efficiency.  Some
events (e.g. AUTH_ACL_CHECK) could be trigged many times in a single
page request.
Merge pull request #555 from splitbrain/event_handler_improvements

Event handler improvements (cont.)