Catch up to system76/beansbooks develop branch.
Overrides for built in Kohana Database functions to ignore mysql warnings until updated to mysqli support.
Merge pull request #3 from funnylookinhat/php5-mysql-updates

Fixes to enable installing BB in newest php5 version until moved to mysqli.
Two changes to prevent deadlocks - only downside is possible calibrations at extremely high load.
Fix for system76/beansbooks#156
Initial working structure for vendor purchases being mutable - pending calibration code.
Refactor for proper journal sorting function.
Sale Calibration.
Updated customer payments to use calibrations - requires testing.
Added Prepaid Purchase Orders and Vendor Purchase Calibrations - Pending Vendor Payment Calibrations and testing.
Cleanup from Customer Calibration changes.
Bugfixes for previous commit.
Bugfixes for Vendor_Payment_Create and Vendor_Purchase_Calibrate_etc
Updated Vendor_Payment calibrations.
Bugfixing with regards to calibrating forms after deleting a payment.
Updated Vendor_Purchase_Update to use proper calibration functions.
Allowed Vendor purchases to have their invoice data updated.
Bugfixes for Vendor_Payment calibration and additional helper function _journal_cmp
Re-implemented necessary validate_only support for Vendor_Payment
Alignment issue with Age Invoices.