add `component` compability

I use prefixfree a lot in my projects, and I find it would be easier to add it to one project via a package manager. So I added component.json and a few tricks to make it CommonJS compatible.