Edits query performance on Controllers#index action

* Avoids N+1 operations on Payments and Purchases Controllers.
* Sets specific table.column_name to sort transactions.
* Adds item_cost_total to LineItem Serializer.