Simplified Document.get_contributors to prevent serial database queries.

Also simplified gravatar helpers to not have to rely on the user profile for reduce reverse relations.