Use ol.extent.createOrUpdate function
Rename optional param to opt_extent
Merge pull request #1003 from fredj/extent

Minor coding style and simplification for ol.Extent