Storing location objects and returning an object instead of just an ID

The Component module has a method `emit()` which adds the required namespace in and calls the `$.emit`.