Add component.json and main script exports

Your README claims support for `component(1)` ... lets make it happen ;)