RPC: modify mergecoins

* Parameter set changes (implement minimum coin credit and use output credit as a maximum value of coin credit);
* Handle of maximum and minimum coin credit while selecting available inputs.