Resource Management In Cloud-Based Radio Access Networks: A Distributed Optimization Perspective