testing/matterhorn: clean up the APKBUILD

- Use the cabal's modern API
- Use dynamic linking as much as possible
- Correctly run the testsuite
- Download the mattermost-api from github instead of relying on cabal
8 jobs for !19554 with matterhorn_bos in 42 minutes and 35 seconds (queued for 1 second)
latest merge request