Graph-based content management in the cloud