Add comments option to query

This commit adds a new option to the query function for returning
comments for the commit.

Change-Id: I67d52f64a92cedc8ca449f0e54c2d1da2766c0a2