Add lift/gamma/gain module

I am neither sure whether the math could be improved nor the place in
the pipe is ideal. Please test and expect changes that could break your
history stacks.