Add wrapX option to ol.source.XYZ

This adds a `wrapX` option to disable world wrapping. Use it like this:

```js
var source = new ol.source.XYZ({
  url: '/path/to/tiles/{z}/{x}/{y}',
  wrapX: false
});
```

Fixes #1864.