Added summary_as_hash method for REST API.