Bring back loadApps() in base.php

loadApps() had been deleted by mistake in
799205488cf82312586f99185e13df6015caa2ff

Please review @LukasReschke @blizzz @VicDeo @fossexplorer