Factor code for scanning a single APK out into its own method.

This allows projects using fdroidserver to scan individual APKs without
needing to re-scan all APKs present in a repository.
1 job for scan-single-apk in 38 minutes and 43 seconds (queued for 17 minutes)
Status Job ID Name Coverage
  Test
passed #12452327
test

00:38:43