com web/bugs: Refactor patches uploading: include/classes/bug_patchtracker.php include/functions.php src/Repository/ObsoletePatchRepository.php src/Repository/PatchRepository.php src/Utils/PatchTracker.php src/Utils/Uploader.php

Link: <a href=";a=commitdiff;h=8ab9a1d1103117a6a185262ebeadba6c2595dcd4" title=";a=commitdiff;h=8ab9a1d1103117a6a185262ebeadba6c2595dcd4">;a=commitdiff;h=8ab9a1d1103117a6a18526...</a>

Refactor patches uploading

This patch moves patches uploading functionality from the outdated
HTTP_Upload package to a dedicated service class in the app.

Additional changes in this context:
- Functionality concerning retrieving patches data from database has
been moved to a separate repository classes.
- Some missed bugs fixed when uploading patches and no developer info
were recorded.
- Obsoleting patches functionality is now working again.
- Added a simple unit test.

Changed paths:
D include/classes/bug_patchtracker.php
M include/functions.php
A src/Repository/ObsoletePatchRepository.php
A src/Repository/PatchRepository.php
A src/Utils/PatchTracker.php
A src/Utils/Uploader.php
M templates/addpatch.php
A tests/Utils/UploaderTest.php
A tests/fixtures/files/patch.txt
M www/bug.php
M www/patch-add.php
M www/patch-display.php
M www/report.php