This port already passes 100% of FoundationDB quick tests, and 97% of all tests, so
I'd like to commit it "as is" to enable wider testing by the FoundationDB community.
I believe that a large portion of this diff may have been derived from vanilla's
existing 6.x port, if so I will ensure the final PR gives credit & any license
/copyright attributions.