Made a factory for initializing Kinvey