New class BaaSKit, moved initialization code into BaaSKit().