Turning @tschaub's FeatureAgent into an event extension.

See http://trac.osgeo.org/openlayers/browser/sandbox/tschaub/select/lib/OpenLayers/FeatureAgent.js. Tests are still missing, but this already works on mobile devices and with Canvas layers. Another possible task would be to make the SelectFeature control use this instead of the Feature handler - then we could get rid of the RootContainer layer for multiple layer selection.
Move some touch logic to the `handler` base class.
Stay on the world when transforming coords.

Instead of a transform that results in +/- Infinity northing, we can constrain the results to be within the world bounds.
URL switching for all REST encoded WMTS layers.
gets the first matrix set instance of only the unique one
Move zeroPad function to BaseTypes and add tests for it
Modify classes which contained an internal numeric zero padding function to use the one in BaseTypes instead
Avoid breaking the "OpenLayers.String.format" execution when searching for an attribute in an undefined object.
Fix DOM API call to setAttributeNS()
Merge pull request #615 from sbrunner/wmts-first-matrix-set

gets the first matrix set instance of only the unique one
Merge pull request #455 from ahocevar/455

Support Subdomains in Openlayers WMTS. r=@sbrunner
Gets the right url (#608 / 3)
[New] raise feature function to move features in layer.
Merge pull request #683 from sbrunner/wmtscapabilities-right-url

Gets the right url (#608 / 3)
call stopObserving before setting img.src to blank image as well
Merge pull request #660 from m-click/fix-setAttributeNS

Fix DOM API call to setAttributeNS()
Merge pull request #690 from pgiraud/client_zoom

call stopObserving before setting img.src to blank image as well
Support for multiple resource urls

With this change, createLayer generates url arrays for both KVP and REST
encoding if multiple resource urls are provided. To make this work, the
WMTSCapabilities format got a new resourceUrls property, because
previously only the first resourceUrl for a format was stored.
Multiple URLs also for unconstrained GetTile resources
Fixing typo

Thanks @sbrunner for catching this. That's what I got from making
last-minute changes before committing without testing again.