Do not always check payload_buf

Records do not have to have a payload, so it does not make sense to
always verify that the payload_buf != NULL.
Fixed db->remove call

Calling db->close/remove destroys the handle used to make that call.
We need to create a temporary handle for calling remove and again
to call open.

Bug-20541
bug-20222: Create database primary key using uuid, timestamp, and thread
id
bug-20538: Comment out jal_purge related code
Updated jal_purge to work with SID/Nonce changes

There are a few changes to note in this commit.
 - Updated jaldb_get_record_by_uuid to return nonces instead of SIDs
 - Added the ability to purge a list of UUIDs
 - Added the ability to purge records before a given timestamp

Bug 20533
Made some updates based on code review

Bug 20533
Few small changes to dumpt to UUID based locations

Records used to be dumped to folders based off of SID's.  This needed to
be updated as we are no longer using SIDs and so I changed it to dump
files to folders based off of UUIDs.

bug-2503
Removed functionality relying on SIDs

Also updated a library function used by jal_dump that returned an SID
when looking up a record by UUID.

bug-20503
Updated jaldb_tail to work with local store changes

Renamed several variable to reflect that they are now working with UUIDs
instead of SIDs.  Also added a function to the library to get all
records instead of last n records.  This can be used by jaldb_tail if
the user specifies n=0 in the command line.

bug-20532
Implemented get_<type>_document_list functions

These are simply a wrapper around the get_all_records function.

Bug 20535
bug-20607: Use publisher provided network nonce to track network communication
bug-20635: Fix race condition
bug-20225: Update network library to not send a serial id with subscribe