Bug 20671: Remove all references to serial id's

This commit changes all references to serial id's to nonces. Also fixes
bugs 20652 and 20654 as well.
Bug 20671: Removed remaining references to serial ids

Missed a few the first time.  Also removed some functions that are no
longer relevant and added jaldb_nonce files.
Bug-20671: Fixed more comments in code review
Bug 18671: Recursively call mkdir in jal_dump

Previously jal_dump would intermitently fail when attempting to open a
file in a subdirectory that had not been created. Using our own library
function that recursively calls mkdir prevents this from happening.