MDLSITE-2694 prechecker. Rebase limits now params.

This moves the currently harcoded rebase limits (warn
and error) to be params.

At the same time some other params now have sensible defaults
applied and all the required variables are checked to be defined.