Transaction-ending refactor discussed in #358
New method TransRecord::finalizeTransaction [optionally] adds
tax & discount lines, rotates data out of localtemptrans, and
update session transno value. Ending script ajax-end.php now
takes a "ref" argument specifying a receipt number. Ditto
for ReceiptLib::printReceipt. Lookups are all against localtranstoday.