added support of subscriptions

purchase of subscription works fine, restoretaion of subscription didn't
check
subscriptions, testing