Import svn-1.8.8.

Highlights:
* Security fix for apache server plugin that we don't build or use
* sqlite performance improvements.
* bug fixes for edge cases and some other less common operations.
Match our implementation of iconv's inbuf argument.
Remove redundant code and fix a style error.

MFC after: 3 days