Add support to register extensions from the grunt task.

Simply added the `extensions` task options, like `filters`.

Added docs, fixed addExtension.