Add component.json to build

Just like #48, but this also adds component.json to the build system.