Implement ajax-style single and bulk purchase

Add modal interfaces for completing purchase
Add controller functions that perform the purchase with error checking and transactions
Add javascript functions that update front end when purchase is made (credit counter and question colouring)
Add purchase functionality to the user profile page