A Two-level Distributed Architecture for Web Content Adaptation and Delivery