Issue 20: moved balancing variables to one central place.
Issue 20: Made balancing stuff configurable via HTML interface.