Make CI a Singleton. This simplifies a lot of the code by not requiring passing CI objects back and forth.