Adds Api::PurchasesController and its specs.
Adds #total and #items methods to Purchase model. Adds call to those same methods on Api::PurchasesController#index and Api::PurchasesController#show actions.