dynamic: use macros for sysfs entries
dynamic: use macros for sysfs entries, continued
app_monitor: renice entire thread group
app_monitor: improve init.d script
data: improve sqlite performace with pragmas
data: calculate app cpu time in pct
data: add active flag to cpu_usage_dist view
app_monitor: fix invalid app time on foreground app change