bug-18950: Fixing subscriber code to purge stale records from temporary storage.
bug-18950: Purge the correct databases and add negative unit tests
bug-20223: Rename serial_id to nonce in network library APIs