[BUGFIX] Fix registration of click menus

Releases: 2.0
Resolves: #60018
Change-Id: I6bf6e08a3fe48a657e0e1225fa3175c4de34420a
[TASK] Remove PHP4 compatible constructor in ApiService

Change-Id: If4b4c2e9c527bc03dcbb0db330d711025f51ef69
[TASK] Explicitly define method/property accessibility in ApiService

Change-Id: I0005bcf95eda26ebed6481c73f45a0151c97c983
[TASK] General cleanup in ApiService

Change-Id: Idad1735bcba64d1b6be1e1f027e41536df7930c9
[TASK] Avoid usage of "global" keyword in ApiService

Change-Id: I94926fe0b24e043d2e8a5c8d4b1183d4b55a59ae
[TASK] Import class names and use short hand syntax in ApiService

Change-Id: Ie79d3e7d30f26ebab574f8528da1c9c9d796d4ca