OC_App: Cache list of enabled apps

In my test here 1 SELECT instead of 5 (when doing a DAV request,
probably similar for other requests)
Merge pull request #5146 from guruz/cache_enabled_apps_list

OC_App: Cache list of enabled apps