M13MarketKit is a complete backend for handling in app purchases.