BUG Fix versioned
Versioned is not writing Version to _version tables for subclasses of Version dataobjects which have their own DB fields
- Fix disjoint of ID / RecordID (which should be the same)
- Fix calculation of new record version
- Fix use of empty vs !isset to check for existing version
Refactor / Cleanup Versioned
API Cookies set via Cookie::set() are now HTTP only by default
Merge pull request #3505 from halkyon/cookie_httponly

Cookies set via Cookie::set() are now HTTP only by default
Merge pull request #3462 from tractorcow/pulls/3.2/fix-versioned

BUG Fix versioned failing to generate new versions
API Convert::html2raw no longer wraps text automatically
BUG Convert::html2raw now correctly decodes single quotes
API Mailer can be configured to use different encoding mechanisms, and added support for unicode quoted-string encoding
API Mailer bounce email can now be configured
API Mailer no longer calls Convert::xml2raw on all email subjects
API Deprecate dead Mailer code and refactored duplicate or mis-documented code.