implemented beforeShowMonth option

to be able to discard unused months when using minViewMode = 1

This was requested in issue #807