feat(premium): refactor subscription & gem-purchase code, misc bug fixes