CDAP-538: Ported procedures of the Purchase app to services.

@ParthGandhi The Purchase app has been updated with services instead of procedures, please take a look.
Better to name this ``PurchaseHistory``. Similarly for the handler. Its a bit more descriptive.