Levels IOP: add automatic mode

Now you can set black/gray/white percentiles, and store as a preset -
will work as expected.
Levels IOP: GUI :)
Simplify commit_params a bit
Fixes
Sum of histogram is just image W*H
Merge pull request #558 from LebedevRI/iop-levels-parametric

IOP Levels: add automatic mode