Compute etherpad "maxThreads" parameter on the fly during startup
Compute etherpad "maxThreads" parameter on the fly during startup

The etherpad will try to create fixed number of worker threads regardless
of available memory. Compute suitable worker threads maximum limit
according to computed JVM memory limit. I assume that previously hardcoded
limit of 4MB per thread is sane and use similar logic for computing
the thread limit in the future. This patch implements a minimum limit of 5
threads.

floatingatoll/pad,OpeningDesign/SketchSpace,floatingatoll/pad,sciflow/pad,square/pad,OpeningDesign/SketchSpace,ether/pad,ether/pad,floatingatoll/pad,square/pad,mozilla/pad,sciflow/pad,square/pad,ether/pad,sciflow/pad,ether/pad,mozilla/pad,square/pad,OpeningDesign/SketchSpace,mozilla/pad,ether/pad,floatingatoll/pad,sciflow/pad,OpeningDesign/SketchSpace,mozilla/pad,mozilla/pad,OpeningDesign/SketchSpace,floatingatoll/pad