Distributed Dynamic Replica Placement and Request Redirection in Content Delivery Networks