Affine-Invariant Online Optimization and the Low-rank Experts Problem