[1/2] Base: Add custom periods for data usage measurement

This commit adds week and day periods for data usage
measurement, instead of just months.

Change-Id: Ibd0067418435442d8cff922faf8ef0f6a5a28761
[2/2] Framework/base: Configure headset hook

Whether or not to allo headset hook to launch voice commands

Useful with headset control programs

PS3: Dont use getIntForUser directly. It breaks
PS5: Whitespce
PS6: Rebase

Change-Id: Ifc24407b87a469a4baadad098895564f7f9aecb8