function getHubFromCarrier(carrier) {
    return getGlobalSingleton('hub', function () { return new Hub(); }, carrier);
}
This will create a new {@link Hub} and add to the passed object on
__SENTRY__.hub.
@param carrier object
@hidden