[Private] switch to a provider so that stubs can be injected before bootstrap
[private] unify var names, always return a cached instance
[private] added tests for private
[private] copied pr desc into the code
Merge pull request #2361 from spenceralger/configure_private

Switch Private server to a provider