Online Assortment and Price Optimization Under Contextual Choice Models