Refactor burndown chart BE logic to support burndown charts in boards

TODO

  • Pass a list of issues, a start date and a end date into Burndown constructor instead of a milestone object.

  • Make sure that Gitlab::Seeder::Burndown still works.

Edited by Coung Ngo