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.
What was the problem with the way it was done previously by the way?