Move the factory to `core.object.factory`.

Create `core.object.base` and make `event.emitter` and `net.uri` extend that.