Query for issue distribution. Fixes #22
API endpoint for issue distribution.