Node task to generate externs for OpenLayers 3

This is useful for environments where devs want to use a compiled build of ol3 with Closure compiler, but without compiling ol3 together with their app.
See the `getNewer()` function. My changes are in line with what was there already. It may make sense to change this, but I think that should be handled separately.