Added component grunt task to generate component.json

Automatically generate component.json to avoid issues like #821 

Probably include minified files too.