Use goog.isNull in if statements
Use goog.asserts.assertInstanceof to check the getSource return type

See 1499af397d9852eded193a8b06ea9d8bad71a49f
Merge pull request #1517 from fredj/vector-api-drawinteraction-cleanup

[vector-api] drawinteraction cleanup
Make ol.source.Source inherit from Observable
Add encoding param to goog.fs.FileReader.readAsText

This is a workaround for https://code.google.com/p/closure-library/issues/detail?id=524
Merge pull request #1516 from fredj/vector-api-source-observable

Make ol.source.Source inherit from Observable
Merge pull request #1518 from fredj/vector-api-1503

[vector-api] Add encoding param to goog.fs.FileReader.readAsText
Fix hit detection on retina displays
Merge pull request #1520 from elemoine/vector-api-hidpi-hit-detection

[vector-api] Fix hit detection on retina displays
Hit detection refactoring

Get the frame state from the map instead of storing values in the layer renderers.
Add ol.source.Source#forEachDetectedFeature
Add ol.source.ImageVector#forEachDetectedFeature
Add ol.renderer.canvas.ImageLayer#forEachFeature
Add ol.renderer.dom.ImageLayer#forEachFeature
Add ol.renderer.webgl.ImageLayer#forEachFeature
Add hit detection to image-vector-layer example
Better typing