Add pagination to api endpoints, includes Refactorings

Add http hypermedia link headers to the response indicating
the pagination status. Similar to the github api.

Refactor sha to sha256 to comply with the aptexport module.
Update test-cases.

Signed-off-by: Christoph Kassen <c.kassen@telekom.de>