Moved measurement processing code to MeasurementReceiver from PowerManagerApp, because it functions should not be static.
Added code to turn on/off wifi/bluetooth and change brightness. But not tested it.