Use replay groups for feature overlays

Thanks @elemoine for the majority of the work on this.

fixes https://github.com/openlayers/ol3/issues/1876
Yes, let's add a test file and a basic test.