Apple revises its controversial guidelines on template-based apps