Add component support

…and also a few minor changes, which are quite stylistic, so we can talk about those ;)

Anyway, I’d like to use this project through package managers like `component` and `duo`. Those libraries need two things: a `component.json` file (which I added, adhering to the style from `package.json`), and versioned releases through Git tags.

I hope you’ll merge this pull request, and hope you could tag following releases (using something like `git tag 0.1.8`, and `git push --tags`)!