Refactor script to be easily testable
Breaks down functionality in the gitlab-depscan.sh script to facilitate testing. Adds some unit and integration tests to the bats suite.
This is part 2 of the effort to update this tool. Source MR: !3 (closed). The next MR will finish this by adding functionality to whitelist CVEs.