Added new "minimum instances" and "maximum instances" template params

This also involved slightly modifying the error-display Javascript

Change-Id: Id4aa40ad57cc586011b9480243069a42ad250525