PerformanceControl: bugfixes

-make memory setting optional
-fix wakelock battery level calc
-simplify fragment handling

Change-Id: I29d50789ea0471fea544170d601c05c427b2b0f1