Add ol.View2D.prototype.setZoom
Remove unused createContinuous function
More type checking for View2D
Use constrainResolution function

Use the constrainResolution function when setting the initial view resolution.
Merge pull request #835 from elemoine/setzoom

Add ol.View2D.prototype.setZoom