Added In App Purchase code for buying products and checking if products have previously been purchased.