API: query changesets by ids

Make changesets query-able by specifying a list of ids, e.g., `/api/0.6/changesets?changesets=1,2,3`. (Related to #534, #584.)