Fix some json parsing.
Weird thing... a possible workaround for motion data.

And included a hack to not upload motion data.
Fix power consumption bug.

- Reverted the motion hack, apparently using ios motion manager with the specified reference frame causes it to keep using cpu even after disabling motion updates
- increased the leeway for noise and motion sensors
- removed some debug messages