added component.json
fixed module.exports
Merge pull request #65 from MatthewMueller/master

added component support and fixed commonjs module.exports