base: raise APINotAvailableError if an API is not setup

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>