Fix totally broken AppStore code...
Fix totally broken AppStore code...

As it turned out the AppStore code was completely broken when it came from apps delivered from the appstore, this meant:

1. You could not disable and then re-enable an application that was installed from the AppStore. It simply failed hard.
2. You could not disable apps from the categories but only from the "Activated" page
3. It did not show the activation state from any category page

This code is completely static and thus testing it is impossible. We really have to stop with "let's add yet another feature in already existing static code". Such stuff has to get refactored first.

That said, this code works from what I can say when clicking around in the AppStore page GUI. However, it may easily be that it does not work with updates or whatsever as I have no chance to test that since the AppStore code is not open-source and it is impossible to write unit-tests for that.

Fixes https://github.com/owncloud/core/issues/14711

michaelletzgus/nextcloud-server,xx621998xx/server,IljaN/core,bluelml/core,nextcloud/server,pixelipo/server,nextcloud/server,nextcloud/server,michaelletzgus/nextcloud-server,lrytz/core,andreas-p/nextcloud-server,pixelipo/server,bluelml/core,endsguy/server,nextcloud/server,sharidas/core,lrytz/core,endsguy/server,pixelipo/server,lrytz/core,Ardinis/server,pollopolea/core,IljaN/core,pollopolea/core,cernbox/core,Ardinis/server,sharidas/core,pollopolea/core,IljaN/core,sharidas/core,pmattern/server,pmattern/server,sharidas/core,bluelml/core,michaelletzgus/nextcloud-server,IljaN/core,pmattern/server,Ardinis/server,Ardinis/server,jbicha/server,whitekiba/server,owncloud/core,jbicha/server,pollopolea/core,pixelipo/server,owncloud/core,jbicha/server,cernbox/core,sharidas/core,cernbox/core,pollopolea/core,whitekiba/server,andreas-p/nextcloud-server,cernbox/core,pmattern/server,endsguy/server,owncloud/core,pmattern/server,whitekiba/server,owncloud/core,jbicha/server,whitekiba/server,xx621998xx/server,bluelml/core,endsguy/server,lrytz/core,andreas-p/nextcloud-server,bluelml/core,andreas-p/nextcloud-server,xx621998xx/server,owncloud/core,cernbox/core,lrytz/core,michaelletzgus/nextcloud-server,Ardinis/server,whitekiba/server,xx621998xx/server,pixelipo/server,phil-davis/core,IljaN/core,andreas-p/nextcloud-server,xx621998xx/server,jbicha/server,endsguy/server