Allow int or function for minimumInputLength.

The minimumInputLength option can be set as either an int or a function.
The function is given the current search term allowing for choosing
different lengths depending
on what the user is typing.