Add an init command that generates a component.json (Fixes #219)

Hopefully this is what you are looking for!

Please feel free to critique the code style. I'm not as experienced in Node as in the browser and went a little EventEmitter crazy at one point.