Wrap thead around 1st row, when 1st cell at 1st row is tableheader. Implements FS#1764
add <THEAD> to top rows of tables when all cells are <TH>
update tests for use with <THEAD> changes
swap order ot test parameters to match expected,actual as per documentation & test output
Merge pull request #390 from splitbrain/tablethead_chris

multi-row THEAD & tests
fix io_rmdir_test::test_nopes() for symlinks in paths
Refactor updateTuple()

The existing function was difficult to follow.  It worked when
adding a new tuple, but not in the most sensible manner.
Merge branch 'master' into tablethead
improvements to double quote matching
Add encoding fix to tpl_img_getTag()

Run jpeg meta tags through cleanText for a conversion to UTF-8
from latin-1 if possible.  MediaManager already uses this
conversion.  Addresses a side issue of FS#1988
Fix a couple of issues with PR#571

1. renderer validity checks were too stringent for plugins, format
   should only need to be checked when mode is 'xhtml'
2. E_USER_WARNING message should now be obsolete, its previous use
   was to generate a warning when 'xhtml' rendering failed. PR#571
   insures 'xhtml' rendering always succeeds.
remove test expectation for E_USER_WARNING
implement rules for when the top rows of a table qualify for a THEAD element
1. TD < 2 in a row
2. TD <= 50% of total cells
3. Not all table rows can be THEAD rows
update unittests for THEAD rules
Merge pull request #612 from splitbrain/improve_double_quote_matching

improvements to double quote matching
Merge pull request #614 from splitbrain/renderer_graceful_fallback_bugfix

Fix a couple of issues with PR#571
Merge pull request #613 from splitbrain/detail_charset_fix

Add encoding fix to tpl_img_getTag()
Merge pull request #607 from splitbrain/osx_io_rmdir_test

fix io_rmdir_test::test_nopes() for symlinks in paths
Merge pull request #387 from splitbrain/tablethead

Adding <thead> to tables
Merge pull request #608 from splitbrain/updateTuple_refactor

Refactor updateTuple()