Configurable header-click action

The original header-click behaviour was changed to select the whole month instead of showing month/year selector. 
I find the month/year selector really helpful when selecting longer ranges and have users who use that more often than full month selection.
Hence, I've added an option to select the click behaviour by specifying the desired action in the options.

An example has also been added to the examples directory.