Add the latest version to the apps.json endpoint of the API

When downloading the list of apps from https://apps.nextcloud.com/api/v1/platform/13.0.4/apps.json then we get a releases array for each app and in most cases the first one in the list is the most current. However, in some cases that’s not the case and depending on the toolset it can be cumbersome to find the latest release number for a particular app.

Example: the app richdocuments got releaseed as version 2.0.10 which is in the middle of the list right between 2.0.2 and 2.0.1

I wonder if there could be a new key on the top level of each app to name the latest version number? Right the same that’s been used on apps.nextcloud.com as well.

In addition to that, the list of releases should be changed to an object keyed by version number such that we can directly access the right record for the latest release without any loops and comparisons.