update server.c and EnergyViewer.java
update server.c
fix some issues
update EnergyViewer
clean up server.c
Merge https://github.com/hanappe/low-energy-boinc