Retrieve all permissions for a site with a single query.

Previously a single query per location was needed.