Add failSafe service and methods to prevent hammering

Will be implemented in cache and watchdog functions in PrivacyPersistenceAdapter.
Merge branch 'cache' of https://github.com/mateor/opd_frameworks_base into cache