Include functionality from balanceupdater.py from the old proxy setup

The balanceupdater.py script still needs to be run separately from the main program. Having all the functionality in one program would be a lot easier for portability & mass setups.