Active distributed framework for adaptive hypermedia