Basic model for subscriptions and notifications

Make environment var pulling more robust, fix pulling settings