Add support for layer min/maxResolution

This PR adds ``minResolution`` and ``maxResolution`` options for layers and layergroups so that a layer would be rendered only if the current map resolution is between its ``minResolution`` and ``maxResolution`` values.

This also adds an example to show how to use ``minResolution`` and ``maxResolution`` options.

Please review when (if) travis is happy.