Feature Base#gruntfile expose a gruntfile-editor API

That allow multiple generator from adding configurations to the
gruntfile.js without creating conflicts when writing the file.
Merge pull request #525 from SBoudrias/gruntfile-api

Gruntfile api (Fix #432)