Added rating API endpoint
Moved purchase endpoints to purchase.php
Added purchase history overlay
Added 'rating percentage' to the table item
Added ability to sort by rating
Changed up button colours
Removed whitespace