Switched to using Payable extension for Order
Fixed issues when running tests with mysql. Tidied some tests. Moved a few things to use the new ORM.