Seems like we need autoloading before trying to init the api since the api might try and load IMP_Factory_Imap, for example.