Efficient Market Making via Convex Optimization, and a Connection to Online Learning