Some scripts/C/Java for the Raspberry Pi server. powermng.c manages power for the RPi based on battery SoC and grid state, eg dumping some excess power to a load taken from grid at optimal times. 2016/08/25: split out separate mbaccess.cpp wrapper.