Implements function to get all bugs associated with release.

* function 'get_milestone_bugs' does the job
* extracted getting list of milestone into 'get_milestones' function