Add component build support.
Refactor to use xhr module.
Add component.json.