Online Hierarchical Optimization for Humanoid Control