View2D option "numZoomLevels" changed to "maxZoom"

This is to be consistent with ol.source.XYZ and ol.tilegrid.XYZ.
More View2D configuration flexibility
maxZoom 18 in localized-openstreetmap example
Merge pull request #546 from elemoine/view2d

View2D - more consistency and configuration flexibility