Dynamic children

Fixes #1 


You're mutating the `Cosmos` package here. This mutation will probably propagate in future `require` calls which might lead to unintended effects. What happened to mocking `getComponentByName`?